[Pkg-samba-maint] Bug#811012: samba-common: rmdir: failed to remove ‘/etc/dhcp3/dhclient-enter-hooks.d’

Paul Slootman paul at debian.org
Thu Jan 14 19:53:42 UTC 2016


Package: samba-common
Version: 2:4.1.17+dfsg-2+deb8u1
Severity: important

Upon upgrade, the postinst fails with the following message:

Setting up samba-common (2:4.1.17+dfsg-2+deb8u1) ...
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 samba-common-bin:
 samba-common-bin depends on samba-common (= 2:4.1.17+dfsg-2+deb8u1); however:
  Package samba-common is not configured yet.

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

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

dpkg: error processing package smbclient (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-common
 samba-common-bin
 samba
 smbclient
E: Sub-process /usr/bin/dpkg returned an error code (1)


Adding "|| true" to the "rmdir -p" line helps.

Perhaps add some logic to not to try to remove the directory if the
parent doesn't exist.


Thanks,
Paul Slootman

-- System Information:
Debian Release: jessie
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.1-wurtel-ws (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages samba-common depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  dpkg                   1.17.26
ii  ucf                    3.0030

Versions of packages samba-common recommends:
iU  samba-common-bin  2:4.1.17+dfsg-2+deb8u1

samba-common suggests no packages.

-- debconf information excluded



More information about the Pkg-samba-maint mailing list