asks debconf question on dapper->hardy upgrade

Bug #174128 reported by Michael Vogt on 2007-12-05
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Michael Vogt

Bug Description

During a dapper->hardy upgrade dhcp3-client asks a debconf question with high priority about some files shuffeld around (dhclient-script moved to sbin and /etc/dhcp3/dhclient-script). This shouldn't be asked.

Related branches

Michael Vogt (mvo) on 2007-12-05
Changed in dhcp3:
milestone: none → ubuntu-8.04-beta
Martin Pitt (pitti) on 2008-01-14
Changed in dhcp3:
assignee: nobody → pitti
status: New → In Progress
Martin Pitt (pitti) wrote :

I just set up a clean dapper chroot and upgraded dhcp3-{common,client}. I did not get a conffile prompt.

$ debdiff dhcp3-client_3.0.3-6ubuntu7_amd64.deb dhcp3-client_3.0.6.dfsg-1ubuntu3_amd64.deb

Files in second .deb but not in first
-rw-r--r-- root/root /usr/share/lintian/overrides/dhcp3-client
-rw-r--r-- root/root DEBIAN/templates
-rwxr-xr-x root/root /sbin/dhclient-script

Files in first .deb but not in second
-rwxr-xr-x root/root /etc/dhcp3/dhclient-script

After the upgrade /etc/dhcp3/dhclient-script does not exist any more, so the upgrade did the right thing.

The preinst/postinst generate a warning about it only if the the md5sum of /etc/dhcp3/dhclient-script is not one of those:

This could certainly be improved to query dpkg for the original md5sum, but it should be good enough. The latter matches the default file in Ubuntu dapper. If you still experience this, can you please attach your version of dhclient-script?

Changed in dhcp3:
status: In Progress → Incomplete
Michael Vogt (mvo) wrote :

I just got the prompt again in a VM environment. The md5sum of /etc/dhcp3/dhclient-script there is a9727be0b1b5a55da5d356bf7dc0c72c.

However, this time the prompt is that dhclient needs to be restarted. Looking at the dhcp3-client.postinst script it seems like this a debconf question with high priority is always asked if it gets upgraded from lt-nl "3.0.4-2".

I will attach a debdiff with a suggested fix.

Martin Pitt (pitti) wrote :

Although the patch does not have a conffile fix at all, none of us could reproduce the conffile prompt. Maybe it was really just mixed up with that debconf note. Please upload, looks good to me.

Changed in dhcp3:
assignee: pitti → mvo
status: Incomplete → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dhcp3 - 3.0.6.dfsg-1ubuntu6

dhcp3 (3.0.6.dfsg-1ubuntu6) hardy; urgency=low

  * debian/dhcp3-client.postinst:
    - change the priority of dhcp3-client/dhclient-needs-restarting
      from high to medium (LP: #174128)

 -- Michael Vogt <email address hidden> Tue, 18 Mar 2008 18:14:13 +0100

Changed in dhcp3:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers