[pkg-dhcp-devel] Bug#620076: leftover files in /var/lib/dhcp3 from migration from 3.x to 4.1.1-x

Mathieu Trudel-Lapierre mathieu.tl at gmail.com
Tue Mar 29 19:49:04 UTC 2011

Package: isc-dhcp-client
Version: 4.1.1-P1-16

This was reported [1] while running an upgrade from Maverick to Natty:

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

I've managed to possibly identify the issue: the dhclient.leases file
in /var/lib/dhcp3 is copied to /var/lib/dhcp/ as a basis for dhclient
to use after the upgrade, but the file from /var/lib/dhcp3 is then
just left behind. What would remove this file would be to purge

I suggest the dhclient.leases file be moved instead, or removed
immediately after the copy. While this *does* break the leases if ever
the upgrade was to fail, further leases can be obtained without
interfering too much with the functionality of dhclient.

[1] - https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/745008


Mathieu Trudel-Lapierre <mathieu.tl at gmail.com>
Freenode: cyphermox, Jabber: mathieu.tl at gmail.com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93

More information about the pkg-dhcp-devel mailing list