[buildd-tools-devel] Bug#603397: Fails to upgrade/dist-upgrade when some conffile changed

Loïc Minier lool at dooz.org
Sat Nov 13 17:49:16 UTC 2010


Package: sbuild
Version: 0.60.4-1
Severity: minor
Tags: patch
User: ubuntu-devel-discuss at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch

        Hey

 So I've configured my sbuild to "$apt_upgrade = 1;" and
 "$apt_distupgrade = 1;", and either of them will break the build
 because of dpkg prompting for a conffile update:
Setting up netbase (4.43ubuntu1) ...

Configuration file `/etc/protocols'
 ==> 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.
*** protocols (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing netbase (--configure):
 EOF on stdin at conffile prompt
[...]
Errors were encountered while processing:
 netbase
E: Sub-process /usr/bin/dpkg returned an error code (1)


 I see DEBIAN_FRONTEND is correctly set to noninteractive for debconf
 prompts; I propose that apt-get upgrade/dist-upgrade set dpkg opts to
 pass --force-confold, see attached patch to ChrootSetup.pm.

   Thanks for considering!

 (I will also look at the reason for protocols being patched in
 Launchpad chroots over the netbase defaults)
-- 
Loïc Minier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chrootsetup.diff
Type: text/x-diff
Size: 822 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101113/d8ffb195/attachment.diff>


More information about the Buildd-tools-devel mailing list