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

Bug #1304557 reported by Sean Sosik-Hamor
34
This bug affects 6 people
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-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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Savi (gaess) wrote :

Bug occured during update from Kubuntu 13.10 to 14.04 and let the whole version upgrade fail.
I've created the directory "/etc/dhcp3/dhclient-enter-hooks.d" manually. Then "dpkg --configure -a". That solved the problem.
Nevertheless, the cleaning up task from version upgrade did not run, so I had to run an "apt-get update", "apt-get upgrade" and "apt-get autoremove" as well.

Revision history for this message
Tony Maro (tonymaro) wrote :

This occurred for me with an LTS upgrade from 12.04 to 14.04 on a server with a static IP.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Trusty has reached the end of the standard support.

Changed in samba (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.