rmdir: failed to remove ‘/etc/dhcp3/dhclient-enter-hooks.d’: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
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-
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.
rmdir: failed to remove ‘/etc/dhcp3/
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+
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+
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.
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+
Candidate: 2:4.1.6+
Version table:
*** 2:4.1.6+
500 http://
100 /var/lib/
2:
500 http://
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://
100 /var/lib/
4.
500 http://
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.
drwxr-xr-x 2 root root 4096 Apr 8 06:27 dhclient-
drwxr-xr-x 2 root root 4096 Apr 8 06:27 dhclient-
-rw-r--r-- 1 root root 4311 Feb 25 18:11 dhcpd.conf
Status changed to 'Confirmed' because the bug affects multiple users.