[pkg-dhcp-devel] Bug#698582: isc-dhcp-client: prompting due to modified conffiles which were not modified by the user: /etc/dhcp/dhclient.conf

gregor herrmann gregoa at debian.org
Sun Feb 10 17:16:15 UTC 2013

Control: tag -1 + confirmed patch

On Sun, 20 Jan 2013 18:42:41 +0100, Andreas Beckmann wrote:

> >>From the attached log (scroll to the bottom...):
>   Setting up isc-dhcp-client (4.2.2.dfsg.1-5+deb70u2) ...
>   Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/debug ...
>   Installing new version of config file /etc/dhcp/dhclient-exit-hooks.d/debug ...
>   Installing new version of config file /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes ...
>   Configuration file `/etc/dhcp/dhclient.conf'
>    ==> Modified (by you or by a script) since installation.
>    ==> Package distributor has shipped an updated version.
>      What would you like to do about it ?  Your options are:
>       Y or I  : install the package maintainer's version
>       N or O  : keep your currently-installed version
>         D     : show the differences between the versions
>         Z     : start a shell to examine the situation
>    The default action is to keep your current version.
>   *** dhclient.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing isc-dhcp-client (--configure):
>    EOF on stdin at conffile prompt
> This was observed on an upgrade from lenny (where dhcp3-client was installed)
> to squeeze to wheezy.

I can confirm this problem for a lenny -> squeeze -> wheezy upgrade;
it does not happen for squeeze -> wheezy.

Some information:


# md5sum /etc/dhcp3/dhclient.conf
6e3910d75cd5cde0042ecb6d48492ae9  /etc/dhcp3/dhclient.conf

# md5sum /etc/dhcp/dhclient.conf 
6e3910d75cd5cde0042ecb6d48492ae9  /etc/dhcp/dhclient.conf
# md5sum /etc/dhcp3/dhclient.conf 
6e3910d75cd5cde0042ecb6d48492ae9  /etc/dhcp3/dhclient.conf

wheezy (after N at the prompt)
# md5sum /etc/dhcp/dhclient.conf
6e3910d75cd5cde0042ecb6d48492ae9  /etc/dhcp/dhclient.conf
# md5sum /etc/dhcp/dhclient.conf.dpkg-new 
eafe9ecc362ada8ea5fba9dcafb4573d  /etc/dhcp/dhclient.conf.dpkg-new


# md5sum /etc/dhcp/dhclient.conf 
c0d3159e771edfcbd4f8a871bacdeac4  /etc/dhcp/dhclient.conf

# md5sum /etc/dhcp/dhclient.conf 
eafe9ecc362ada8ea5fba9dcafb4573d  /etc/dhcp/dhclient.conf


Note that /etc/dhcp/dhclient.conf has the same md5sum as
/etc/dhcp3/dhclient.conf in the upgrade case, and a different one on
fresh squeeze installs. This is probably caused by

    if [ -z "$2" ]; then
        if [ -e /etc/dhcp3/dhclient.conf ]; then
            cp /etc/dhcp3/dhclient.conf /etc/dhcp/dhclient.conf

in debian/isc-dhcp-client.postinst.

So I guess there needs to be some hack in
debian/isc-dhcp-client.preinst ...

Ok, first attempt (patch against the package in testing) attached;
improvements welcome.


 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Davy Graham: The Fakir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 698582_wheezy.diff
Type: text/x-diff
Size: 2185 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20130210/d617311f/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20130210/d617311f/attachment.pgp>

More information about the pkg-dhcp-devel mailing list