[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#973305: apt-get throws error when run with --simulate and APT::Immediate-Configure set to "false"



Package: apt
Version: 2.1.11
Severity: important

Hi,

as discussed on IRC, I'm writing up the recent problem found by the
mmdebstrap CI tests:

https://ci.debian.net/data/autopkgtest/testing/arm64/m/mmdebstrap/7787391/log.gz
https://ci.debian.net/data/autopkgtest/testing/arm64/m/mmdebstrap/7790646/log.gz
https://ci.debian.net/data/autopkgtest/unstable/amd64/m/mmdebstrap/7789206/log.gz

The apt output from the last log:

E: Couldn't configure debconf:amd64, probably a dependency cycle.
W: Could not perform immediate configuration on 'libssl1.1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Could not configure 'libc6:amd64'. 
W: Could not perform immediate configuration on 'libkrb5-3:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Could not configure 'libc6:amd64'. 
W: Could not perform immediate configuration on 'libgssapi-krb5-2:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Could not configure 'libc6:amd64'. 
W: Could not perform immediate configuration on 'libtirpc3:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Could not configure 'libc6:amd64'. 
W: Could not perform immediate configuration on 'libnsl2:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Could not configure 'libc6:amd64'. 
W: Could not perform immediate configuration on 'libnss-nis:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Couldn't configure debconf:amd64, probably a dependency cycle.
W: Could not perform immediate configuration on 'libnss-nisplus:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Couldn't configure debconf:amd64, probably a dependency cycle.
W: Could not perform immediate configuration on 'libc6:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
E: Couldn't configure debconf:amd64, probably a dependency cycle.
E: apt-get --yes -oApt::Get::Download-Only=true -oAPT::Get::Simulate=true dist-upgrade -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false failed


To reproduce this problem with mmdebstrap, run:

    $ mmdebstrap --dry-run --variant=apt unstable /dev/null

Particularly, the problem does *not* occur without --dry-run. Normal
installation works fine.

To reproduce the problem without mmdebstrap, use:

    $ cat << END > apt.conf
    > Apt::Architecture "amd64";
    > Apt::Architectures "amd64";
    > Dir "/tmp/apt";
    > Dir::State::Status "/tmp/apt/var/lib/dpkg/status";
    > Dir::Etc::Trusted "/etc/apt/trusted.gpg";
    > Dir::Etc::TrustedParts "/etc/apt/trusted.gpg.d/";
    > APT::Immediate-Configure "false";
    > END
    $ mkdir -p /tmp/apt/etc/apt
    $ echo "deb http://deb.debian.org/debian unstable main" > /tmp/apt/etc/apt/sources.list
    $ mkdir -p /tmp/apt/var/lib/apt/lists/partial
    $ mkdir -p /tmp/apt/var/lib/dpkg/
    $ touch /tmp/apt/var/lib/dpkg/status
    $ APT_CONFIG=apt.conf apt-get --yes -oAPT::Get::Simulate=true dist-upgrade
    [...]
    E: Conf Broken libpam0g:amd64
    E: Conf Broken libpam-modules:amd64
    E: Conf Broken adduser:amd64
    E: Conf Broken libssl1.1:amd64
    $ echo $?
    100

Thanks!

cheers, josch


Reply to: