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

Bug#973325: apt starts installing packages before it has ordered them



Package: apt
Version: 2.1.11
Severity: important

Hi,

as agreed on IRC here my bugreport. I noticed this when running
mmdebstrap in chrootless mode:

    $ ./mmdebstrap --mode=chrootless --variant=custom --include=bsdutils,coreutils,debianutils,diffutils,dpkg,findutils,grep,gzip,hostname,init-system-helpers,ncurses-base,ncurses-bin,perl-base,sed,tar unstable /dev/null
    [...]
    Reading package lists...
    Building dependency tree...
    Suggested packages:
      debconf-doc debconf-utils whiptail | dialog libterm-readline-gnu-perl
      libgtk3-perl libnet-ldap-perl perl debconf-kde-helper diffutils-doc wdiff
      apt debsig-verify mlocate | locate less glibc-doc libc-l10n locales
      rng-tools krb5-doc krb5-user sensible-utils bzip2 ncompress xz-utils
      tar-scripts tar-doc
    Recommended packages:
      bsdextrautils apt-utils debconf-i18n libidn2-0 libgpg-error-l10n
      krb5-locales
    The following NEW packages will be installed:
      bsdutils coreutils debconf debianutils diffutils dpkg findutils gcc-10-base
      grep gzip hostname init-system-helpers libacl1 libattr1 libbz2-1.0 libc6
      libcom-err2 libcrypt1 libgcc-s1 libgcrypt20 libgmp10 libgpg-error0
      libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
      liblz4-1 liblzma5 libnsl2 libnss-nis libnss-nisplus libpcre2-8-0 libpcre3
      libselinux1 libssl1.1 libsystemd0 libtinfo6 libtirpc-common libtirpc3
      libzstd1 ncurses-base ncurses-bin perl-base sed tar zlib1g
    0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/19.2 MB of archives.
    After this operation, 74.5 MB of additional disk space will be used.
    Selecting previously unselected package gcc-10-base:amd64.
    (Reading database ... 0 files and directories currently installed.)
    Preparing to unpack .../gcc-10-base_10.2.0-15_amd64.deb ...
    Unpacking gcc-10-base:amd64 (10.2.0-15) ...
    Setting up gcc-10-base:amd64 (10.2.0-15) ...
    Selecting previously unselected package libcrypt1:amd64.
    (Reading database ... 9 files and directories currently installed.)
    Preparing to unpack .../libcrypt1_1%3a4.4.17-1_amd64.deb ...
    Unpacking libcrypt1:amd64 (1:4.4.17-1) ...
    Selecting previously unselected package libc6:amd64.
    Preparing to unpack .../libc6_2.31-4_amd64.deb ...
    Unpacking libc6:amd64 (2.31-4) ...
    Selecting previously unselected package libgcc-s1:amd64.
    Preparing to unpack .../libgcc-s1_10.2.0-15_amd64.deb ...
    Unpacking libgcc-s1:amd64 (10.2.0-15) ...
    Selecting previously unselected package libnss-nis:amd64.
    Preparing to unpack .../libnss-nis_3.1-4_amd64.deb ...
    Unpacking libnss-nis:amd64 (3.1-4) ...
    Selecting previously unselected package libnsl2:amd64.
    Preparing to unpack .../libnsl2_1.3.0-2_amd64.deb ...
    Unpacking libnsl2:amd64 (1.3.0-2) ...
    Selecting previously unselected package libtirpc3:amd64.
    Preparing to unpack .../libtirpc3_1.2.6-3_amd64.deb ...
    Unpacking libtirpc3:amd64 (1.2.6-3) ...
    Selecting previously unselected package libgssapi-krb5-2:amd64.
    Preparing to unpack .../libgssapi-krb5-2_1.17-10_amd64.deb ...
    Unpacking libgssapi-krb5-2:amd64 (1.17-10) ...
    Selecting previously unselected package libcom-err2:amd64.
    Preparing to unpack .../libcom-err2_1.45.6-1_amd64.deb ...
    Unpacking libcom-err2:amd64 (1.45.6-1) ...
    Selecting previously unselected package libk5crypto3:amd64.
    Preparing to unpack .../libk5crypto3_1.17-10_amd64.deb ...
    Unpacking libk5crypto3:amd64 (1.17-10) ...
    Selecting previously unselected package libkrb5support0:amd64.
    Preparing to unpack .../libkrb5support0_1.17-10_amd64.deb ...
    Unpacking libkrb5support0:amd64 (1.17-10) ...
    Selecting previously unselected package libkrb5-3:amd64.
    Preparing to unpack .../libkrb5-3_1.17-10_amd64.deb ...
    Unpacking libkrb5-3:amd64 (1.17-10) ...
    Selecting previously unselected package libkeyutils1:amd64.
    Preparing to unpack .../libkeyutils1_1.6.1-2_amd64.deb ...
    Unpacking libkeyutils1:amd64 (1.6.1-2) ...
    Selecting previously unselected package libssl1.1:amd64.
    Preparing to unpack .../libssl1.1_1.1.1h-1_amd64.deb ...
    Unpacking libssl1.1:amd64 (1.1.1h-1) ...
    Selecting previously unselected package libtirpc-common.
    Preparing to unpack .../libtirpc-common_1.2.6-3_all.deb ...
    Unpacking libtirpc-common (1.2.6-3) ...
    Setting up libtirpc-common (1.2.6-3) ...
    Selecting previously unselected package libnss-nisplus:amd64.
    (Reading database ... 411 files and directories currently installed.)
    Preparing to unpack .../libnss-nisplus_1.3-4_amd64.deb ...
    Unpacking libnss-nisplus:amd64 (1.3-4) ...
    dpkg: dependency problems prevent configuration of libcom-err2:amd64:
     libcom-err2:amd64 depends on libc6 (>= 2.17); however:
      Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libcom-err2:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libkrb5support0:amd64:
     libkrb5support0:amd64 depends on libc6 (>= 2.14); however:
      Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libkrb5support0:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libk5crypto3:amd64:
     libk5crypto3:amd64 depends on libc6 (>= 2.14); however:
      Package libc6:amd64 is not configured yet.
     libk5crypto3:amd64 depends on libkrb5support0 (>= 1.16); however:
      Package libkrb5support0:amd64 is not configured yet.
    
    dpkg: error processing package libk5crypto3:amd64 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libkeyutils1:amd64:
     libkeyutils1:amd64 depends on libc6 (>= 2.14); however:
      Package libc6:amd64 is not configured yet.
    
    dpkg: error processing package libkeyutils1:amd64 (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     libcom-err2:amd64
     libkrb5support0:amd64
     libk5crypto3:amd64
     libkeyutils1:amd64
    E: Could not configure 'libc6:amd64'. 
    W: Could not perform immediate configuration on 'libgcc-s1: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 'libcom-err2: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 'libkrb5support0: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 'libk5crypto3: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 'libkeyutils1: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 '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: Sub-process /usr/bin/dpkg returned an error code (1)

The problem can also be reproduced without mmdebstrap with this script:

    $ 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/";
    > pkgCacheGen::ForceEssential ",";
    > 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/
    $ mkdir -p /tmp/apt/var/cache/apt/archives/partial
    $ mkdir -p /tmp/apt/var/log/apt/
    $ touch /tmp/apt/var/lib/dpkg/status
    $ APT_CONFIG=apt.conf apt-get update
    $ APT_CONFIG=apt.conf apt-get --yes -oDPkg::Options::=--force-not-root -oDPkg::Options::=--force-script-chrootless -oDPkg::Options::=--root=/tmp/apt -oDPkg::Options::=--log=/tmp/apt/var/log/dpkg.log install libc6

I attached /tmp/apt/var/log/apt/eipp.log.xz as created by above script.

Thanks!

cheers, josch

Attachment: eipp.log.xz
Description: application/xz


Reply to: