Files left behind on upgrade from Maverick

Bug #745008 reported by Scott Kitterman on 2011-03-29
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
Medium
Unassigned
samba (Ubuntu)
Undecided
Unassigned

Bug Description

Preparing to replace dhcp3-client 3.1.3-2ubuntu6 (using .../dhcp3-client_4.1.1-P1-15ubuntu5_all.deb) ...^M
Unpacking replacement dhcp3-client ...^M
dpkg: warning: unable to delete old directory '/var/lib/dhcp3': Directory not empty^M
dpkg: warning: unable to delete old directory '/etc/dhcp3/dhclient-enter-hooks.d': Directory not empty^M

I'm not using dhcp on this box, so no idea if functional configuration changes are handled correctly, but the package upgrade should clean up after itself.

tags: added: iso-testing

Confirming, I can at least see that samba-common seems to be installing files in /etc/dhcp3/dhclient-enter-hooks.d. Since it's the most likely cause of this upgrade failure, let's start with that.

mtrudel@demeter ~ % ls -l /etc/dhcp3/dhclient-enter-hooks.d
total 4,0K
-rwxr-xr-x 1 root root 1,7K 2011-03-10 15:46 samba
mtrudel@demeter ~ % dpkg -S /etc/dhcp3/dhclient-enter-hooks.d
samba-common: /etc/dhcp3/dhclient-enter-hooks.d

Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in isc-dhcp (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)

There's some validity in having /var/lib/dhcp3 files still exist: we don't remove the old leases unless the user specifically removes the transitional dhcp3-client packages. That seems to be a decision that was made in Debian, and I think it makes some sense -- later, upgrades from 11.04 should probably remove these files. I'm removing the assignment for now and setting this back to Triaged because it needs to be brought up to the Debian maintainers of isc-dhcp.

Much of the same goes for samba: seems like the enter/exit scripts were created in /etc/dhcp/dhclient-*-scripts.d as symlinks to the same scripts in /etc/dhcp3; and changing this would need to be done in Debian.

Changed in isc-dhcp (Ubuntu):
status: In Progress → Triaged
assignee: Mathieu Trudel-Lapierre (mathieu-tl) → nobody

Seems the symlinks in Samba were done on purpose for upgrade compatibility, since samba doesn't depend on the installed DHCP client and can't know which is the correct directory to put the hooks in. At a later point in Debian samba should drop that symlink.

Changed in samba (Ubuntu):
status: New → Invalid
Stéphane Graber (stgraber) wrote :

Some packages still ship hooks in both locations so it's not totally surprising that the directory still exists on removal and isn't really a problem.

As for /var/lib, as Mathieu stated earlier, lease files will still be in there so removing these would be wrong. Unfortunately, migrating them is also tricky to do, so it's best to keep them around and let the admin deal with them if wanted.

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

Other bug subscribers