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

Roger Leigh rleigh at codelibre.net
Sat Nov 13 18:47:55 UTC 2010


tags 603397 + fixed-upstream pending
thanks

On Sat, Nov 13, 2010 at 06:49:16PM +0100, Loïc Minier wrote:
>  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!

Applied, thanks!

>  (I will also look at the reason for protocols being patched in
>  Launchpad chroots over the netbase defaults)

It's due to schroot copying NSS databases over into the chroot
from the host.  See /etc/schroot/default/nssdatabases and
/etc/schroot/setup.d/20nssdatabases.  If you don't want this
behaviour you can customise it to copy only a subset of the
databases.


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101113/e8510321/attachment.pgp>


More information about the Buildd-tools-devel mailing list