← Back to team overview

enterprise-support team mailing list archive

[Bug 1304557] [NEW] rmdir: failed to remove ‘/etc/dhcp3/dhclient-enter-hooks.d’: No such file or directory

 

Public bug reported:

I did an apt-get dist-upgrade on my Trusty machine and samba-common
failed to upgrade. It looks like it's trying to remove a directory that
no longer exists (dhcp3 vs. dhcp).

Here is the output.

sciri@iriguchi:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libhdb9-heimdal linux-headers-3.13.0-20 linux-headers-3.13.0-20-generic linux-image-3.13.0-20-generic linux-image-extra-3.13.0-20-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up samba-common (2:4.1.6+dfsg-1ubuntu2) ...
rmdir: failed to remove ‘/etc/dhcp3/dhclient-enter-hooks.d’: No such file or directory
dpkg: error processing package samba-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of smbclient:
 smbclient depends on samba-common (= 2:4.1.6+dfsg-1ubuntu2); however:
  Package samba-common is not configured yet.

dpkg: error processing package smbclient (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on samba-common (= 2:4.1.6+dfsg-1ubuntu2); however:
  Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.


sciri@iriguchi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Trusty Tahr (development branch)
Release:        14.04
Codename:       trusty


sciri@iriguchi:~$ apt-cache policy samba-common
samba-common:
  Installed: 2:4.1.6+dfsg-1ubuntu2
  Candidate: 2:4.1.6+dfsg-1ubuntu2
  Version table:
 *** 2:4.1.6+dfsg-1ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     2:3.6.3-2ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages


sciri@iriguchi:~$ apt-cache policy isc-dhcp-server
isc-dhcp-server:
  Installed: 4.2.4-7ubuntu12
  Candidate: 4.2.4-7ubuntu12
  Version table:
 *** 4.2.4-7ubuntu12 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     4.1.ESV-R4-0ubuntu5 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages


sciri@iriguchi:~$ ls -al /etc/dhcp3/
ls: cannot access /etc/dhcp3/: No such file or directory
sciri@iriguchi:~$ ls -al /etc/dhcp/
total 44
drwxr-xr-x   5 root root   4096 Apr  8 06:27 .
drwxr-xr-x 126 root root  12288 Apr  8 13:08 ..
drwxr-x---   2 root dhcpd  4096 Sep 11  2012 ddns-keys
-rw-r--r--   1 root root     63 May 26  2011 dhclient.conf
-rw-r--r--   1 root root   1830 Mar 14  2013 dhclient.conf.dpkg-dist
drwxr-xr-x   2 root root   4096 Apr  8 06:27 dhclient-enter-hooks.d
drwxr-xr-x   2 root root   4096 Apr  8 06:27 dhclient-exit-hooks.d
-rw-r--r--   1 root root   4311 Feb 25 18:11 dhcpd.conf

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1304557

Title:
  rmdir: failed to remove ‘/etc/dhcp3/dhclient-enter-hooks.d’: No such
  file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1304557/+subscriptions


Follow ups

References