Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
* Jakub Wilk , 2021-10-13, 11:59: Huh. I can reproduce the bug in debian:bullseye docker. I added a few debugging options and run it again. I've attached the dockerfile I used for testing and the build output. -- Jakub Wilk FROM debian:bullseye RUN apt update RUN apt install --no-install-recommends -y gcc libfido2-1 RUN echo 'deb http://ftp.debian.org/debian unstable main' >> /etc/apt/sources.list RUN apt update RUN apt install -yd libfido2-1 RUN apt upgrade --no-download --fix-missing --auto-remove -o Debug::pkgOrderList=true -o Debug::pkgPackageManager=true Sending build context to Docker daemon 2.56kB Step 1/7 : FROM debian:bullseye ---> f776cfb21b5e Step 2/7 : RUN apt update ---> Running in 59455be0d3c5 [91m WARNING: apt does not have a stable CLI interface. Use with caution in scripts. [0mGet:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB] Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB] Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [72.0 kB] Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8180 kB] Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2300 B] Fetched 8454 kB in 2s (4891 kB/s) Reading package lists... Building dependency tree... Reading state information... All packages are up to date. Removing intermediate container 59455be0d3c5 ---> 66ebd4c519f6 Step 3/7 : RUN apt install --no-install-recommends -y gcc libfido2-1 ---> Running in 86cf115a6785 [91m WARNING: apt does not have a stable CLI interface. Use with caution in scripts. [0mReading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-10 gcc-10 libasan6 libatomic1 libbinutils libcbor0 libcc1-0 libctf-nobfd0 libctf0 libgcc-10-dev libgomp1 libisl23 libitm1 liblsan0 libmpc3 libmpfr6 libquadmath0 libtsan0 libubsan1 Suggested packages: binutils-doc cpp-doc gcc-10-locales gcc-multilib make manpages-dev autoconf automake libtool flex bison gdb gcc-doc gcc-10-multilib gcc-10-doc Recommended packages: libc6-dev | libc-dev libc6-dev The following NEW packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-10 gcc gcc-10 libasan6 libatomic1 libbinutils libcbor0 libcc1-0 libctf-nobfd0 libctf0 libfido2-1 libgcc-10-dev libgomp1 libisl23 libitm1 liblsan0 libmpc3 libmpfr6 libquadmath0 libtsan0 libubsan1 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. Need to get 41.5 MB of archives. After this operation, 151 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main amd64 binutils-common amd64 2.35.2-2 [2220 kB] Get:2 http://deb.debian.org/debian bullseye/main amd64 libbinutils amd64 2.35.2-2 [570 kB] Get:3 http://deb.debian.org/debian bullseye/main amd64 libctf-nobfd0 amd64 2.35.2-2 [110 kB] Get:4 http://deb.debian.org/debian bullseye/main amd64 libctf0 amd64 2.35.2-2 [53.2 kB] Get:5 http://deb.debian.org/debian bullseye/main amd64 binutils-x86-64-linux-gnu amd64 2.35.2-2 [1809 kB] Get:6 http://deb.debian.org/debian bullseye/main amd64 binutils amd64 2.35.2-2 [61.2 kB] Get:7 http://deb.debian.org/debian bullseye/main amd64 libisl23 amd64 0.23-1 [676 kB] Get:8 http://deb.debian.org/debian bullseye/main amd64 libmpfr6 amd64 4.1.0-3 [2012 kB] Get:9 http://deb.debian.org/debian bullseye/main amd64 libmpc3 amd64 1.2.0-1 [45.0 kB] Get:10 http://deb.debian.org/debian bullseye/main amd64 cpp-10 amd64 10.2.1-6 [8528 kB] Get:11 http://deb.debian.org/debian bullseye/main amd64 cpp amd64 4:10.2.1-1 [19.7 kB] Get:12 http://deb.debian.org/debian bullseye/main amd64 libcc1-0 amd64 10.2.1-6 [47.0 kB] Get:13 http://deb.debian.org/debian bullseye/main amd64 libgomp1 amd64 10.2.1-6 [99.9 kB] Get:14 http://deb.debian.org/debian bullseye/main amd64 libitm1 amd64 10.2.1-6 [25.8 kB] Get:15 http://deb.debian.org/debian bullseye/main amd64 libatomic1 amd64 10.2.1-6 [9008 B] Get:16 http://deb.debian.org/debian bullseye/main amd64 libasan6 amd64 10.2.1-6 [2065 kB] Get:17 http://deb.debian.org/debian bullseye/main amd64 liblsan0 amd64 10.2.1-6 [828 kB] Get:18 http://deb.debian.org/debian bullseye/main amd64 libtsan0 amd64 10.2.1-6 [2000 kB] Get:19 http://deb.debian.org/debian bullseye/main amd64 libubsan1 amd64 10.2.1-6 [777 kB] Get:20 http://deb.debian.org/debian bullseye/main amd64 libquadmath0 amd64 10.2.1-6 [145 kB] Get:21 http://deb.debian.org/debian bullseye/main amd64 libgcc-10-dev amd64 10.2.1-6 [2328 kB] Get:22 http://deb.debian.org/debian bullseye/main amd64 gcc-10 amd64 10.2.1-6 [17.0 MB] Get:23 http://deb.debian.org/debian bullseye/main amd64 gcc amd64 4:10.2.1-1 [5192 B] Get:24 http://deb.debian.org/debian bullseye/main amd64 libcbor0 amd64 0.5.0+dfsg-2 [24.0 kB] Get:25
Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
* Julian Andres Klode , 2021-10-13, 11:42: apt install --no-install-recommends -y gcc libfido2-1 echo 'deb http://ftp.debian.org/debian unstable main' >> /etc/apt/sources.list apt update apt install -yd libfido2-1 apt upgrade --no-download --fix-missing --auto-remove I tried this both in a debian:bullseye docker image and a images:debian/bullseye lxd container, and it works in both. Huh. I can reproduce the bug in debian:bullseye docker. -- Jakub Wilk
Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
On Mon, Oct 11, 2021 at 07:04:18PM +0200, Jakub Wilk wrote: > This is how to reproduce this in a bullseye chroot: > > apt install --no-install-recommends -y gcc libfido2-1 > echo 'deb http://ftp.debian.org/debian unstable main' >> > /etc/apt/sources.list > apt update > apt install -yd libfido2-1 > apt upgrade --no-download --fix-missing --auto-remove I tried this both in a debian:bullseye docker image and a images:debian/bullseye lxd container, and it works in both. Not interested in running debootstrap and dealing with chroots. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en
Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
This is how to reproduce this in a bullseye chroot: apt install --no-install-recommends -y gcc libfido2-1 echo 'deb http://ftp.debian.org/debian unstable main' >> /etc/apt/sources.list apt update apt install -yd libfido2-1 apt upgrade --no-download --fix-missing --auto-remove -- Jakub Wilk
Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
Control: tag -1 moreinfo On Mon, Oct 11, 2021 at 02:35:39PM +0200, Jakub Wilk wrote: > Package: apt > Version: 2.3.9 > > I was in the middle of "apt upgrade" downloading packages, stopped it, and > decided to upgrade stuff that is already downloaded. It didn't go well: > > # apt upgrade --no-download --fix-missing --auto-remove > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > Calculating upgrade... Done > The following packages will be REMOVED: > gobjc-10* (10.3.0-11) > libcbor0* (0.5.0+dfsg-2) > The following packages have been kept back: > bzr (2.7.0+bzr6622-15 => 2.7.0+bzr6622+brz) > cpp (4:10.2.1-1 => 4:11.2.0-2) > d-shlibs (0.101 => 0.102) > docutils-common (0.16+dfsg-2 => 0.16+dfsg-4) > g++ (4:10.2.1-1 => 4:11.2.0-2) > gcc (4:10.2.1-1 => 4:11.2.0-2) > gobjc (4:10.2.1-1 => 4:11.2.0-2) > libaio1 (0.3.112-10 => 0.3.112-11) > libaio1:amd64 (0.3.112-10 => 0.3.112-11) > libdeflate-dev (1.7-2 => 1.8-1) > libdeflate0 (1.7-2 => 1.8-1) > libdeflate0:amd64 (1.7-2 => 1.8-1) > libfido2-1 (1.8.0-1 => 1.8.0-1+b1) > libglibmm-2.4-1v5 (2.66.1-1 => 2.66.2-1) > libjs-sphinxdoc (4.2.0-3 => 4.2.0-4) > libuser (1:0.63~dfsg-2 => 1:0.63~dfsg-3) > libuser1 (1:0.63~dfsg-2 => 1:0.63~dfsg-3) > libwireshark-data (3.4.8-1 => 3.4.9-1) > libwireshark14 (3.4.8-1 => 3.4.9-1) > libwiretap11 (3.4.8-1 => 3.4.9-1) > libwsutil12 (3.4.8-1 => 3.4.9-1) > libwww-perl (6.53-1 => 6.57-1) > libzint2.10 (2.10.0-1 => 2.10.0-1+b1) > mksh (59c-11 => 59c-12) > mkvtoolnix (61.0.0-1 => 62.0.0-1) > neomutt (20180716+dfsg.1-1+deb10u2 => 20201127+dfsg.1-1.2+b1) > python3-astroid (2.8.1-1 => 2.8.2-1) > python3-bcrypt (3.1.7-4 => 3.2.0-1) > python3-click (7.1.2-1 => 8.0.2-1) > python3-docutils (0.16+dfsg-2 => 0.16+dfsg-4) > python3-kiwisolver (1.3.1-2 => 1.3.2-1) > python3-logilab-common (1.4.3-1 => 1.8.1-1) > python3-regex (0.1.20201113-2 => 0.1.20211008-1) > python3-sphinx (4.2.0-3 => 4.2.0-4) > python3-urwid (2.1.2-1 => 2.1.2-2) > sphinx-common (4.2.0-3 => 4.2.0-4) > sphinx-doc (4.2.0-3 => 4.2.0-4) > tshark (3.4.8-1 => 3.4.9-1) > wireshark-common (3.4.8-1 => 3.4.9-1) > zint (2.10.0-1 => 2.10.0-1+b1) > 0 upgraded, 0 newly installed, 2 to remove and 40 not upgraded. > The following packages have unmet dependencies: >gobjc : Depends: gobjc-10 (>= 10.2.1-3~) but it is not going to be > installed >libfido2-1 : Depends: libcbor0 (>= 0.5.0) but it is not going to be > installed > E: Internal error, InstallPackages was called with broken packages! I don't know where this ends up, but we definitely need more logs, see README.md for debugging instructions. If this fails in the resolver, doing --solver dump with APT_EDSP_DUMP_FILENAME set to a nice filename and attaching that file would be super helpful. -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en
Bug#996115: apt upgrade --no-download --fix-missing --auto-remove: "E: Internal error, InstallPackages was called with broken packages!"
Package: apt Version: 2.3.9 I was in the middle of "apt upgrade" downloading packages, stopped it, and decided to upgrade stuff that is already downloaded. It didn't go well: # apt upgrade --no-download --fix-missing --auto-remove Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: gobjc-10* (10.3.0-11) libcbor0* (0.5.0+dfsg-2) The following packages have been kept back: bzr (2.7.0+bzr6622-15 => 2.7.0+bzr6622+brz) cpp (4:10.2.1-1 => 4:11.2.0-2) d-shlibs (0.101 => 0.102) docutils-common (0.16+dfsg-2 => 0.16+dfsg-4) g++ (4:10.2.1-1 => 4:11.2.0-2) gcc (4:10.2.1-1 => 4:11.2.0-2) gobjc (4:10.2.1-1 => 4:11.2.0-2) libaio1 (0.3.112-10 => 0.3.112-11) libaio1:amd64 (0.3.112-10 => 0.3.112-11) libdeflate-dev (1.7-2 => 1.8-1) libdeflate0 (1.7-2 => 1.8-1) libdeflate0:amd64 (1.7-2 => 1.8-1) libfido2-1 (1.8.0-1 => 1.8.0-1+b1) libglibmm-2.4-1v5 (2.66.1-1 => 2.66.2-1) libjs-sphinxdoc (4.2.0-3 => 4.2.0-4) libuser (1:0.63~dfsg-2 => 1:0.63~dfsg-3) libuser1 (1:0.63~dfsg-2 => 1:0.63~dfsg-3) libwireshark-data (3.4.8-1 => 3.4.9-1) libwireshark14 (3.4.8-1 => 3.4.9-1) libwiretap11 (3.4.8-1 => 3.4.9-1) libwsutil12 (3.4.8-1 => 3.4.9-1) libwww-perl (6.53-1 => 6.57-1) libzint2.10 (2.10.0-1 => 2.10.0-1+b1) mksh (59c-11 => 59c-12) mkvtoolnix (61.0.0-1 => 62.0.0-1) neomutt (20180716+dfsg.1-1+deb10u2 => 20201127+dfsg.1-1.2+b1) python3-astroid (2.8.1-1 => 2.8.2-1) python3-bcrypt (3.1.7-4 => 3.2.0-1) python3-click (7.1.2-1 => 8.0.2-1) python3-docutils (0.16+dfsg-2 => 0.16+dfsg-4) python3-kiwisolver (1.3.1-2 => 1.3.2-1) python3-logilab-common (1.4.3-1 => 1.8.1-1) python3-regex (0.1.20201113-2 => 0.1.20211008-1) python3-sphinx (4.2.0-3 => 4.2.0-4) python3-urwid (2.1.2-1 => 2.1.2-2) sphinx-common (4.2.0-3 => 4.2.0-4) sphinx-doc (4.2.0-3 => 4.2.0-4) tshark (3.4.8-1 => 3.4.9-1) wireshark-common (3.4.8-1 => 3.4.9-1) zint (2.10.0-1 => 2.10.0-1+b1) 0 upgraded, 0 newly installed, 2 to remove and 40 not upgraded. The following packages have unmet dependencies: gobjc : Depends: gobjc-10 (>= 10.2.1-3~) but it is not going to be installed libfido2-1 : Depends: libcbor0 (>= 0.5.0) but it is not going to be installed E: Internal error, InstallPackages was called with broken packages! -- System Information: Architecture: i386 Versions of packages apt depends on: ii adduser 3.118 ii gpgv2.2.27-2 ii libapt-pkg6.0 2.3.9 ii debian-archive-keyring 2021.1.1 ii libc6 2.32-4 ii libgcc-s1 11.2.0-9 ii libgnutls30 3.7.2-2 ii libseccomp2 2.5.2-2 ii libstdc++6 11.2.0-9 ii libsystemd0 247.9-4 -- Jakub Wilk