Package: debootstrap Version: 1.0.134 Severity: important There exist multiversion Packages files, e.g. they can be created by dpkg-scanpackages -m but dak also occasionally seems to create them.
I just had multiple attempts at creating a buildd chroot fail. One was with debootstrap --variant=buildd where perl-modules-5.38 failed the bootstrap because the Packages file contains two versions of it (5.38.2-3.2 (the one we want) followed by 5.38.2-3). According to cbmuser, the arch:all part of debian-ports Packages files is an identical embedded copy of binaries-all/Packages from dak for sid, so this is not just a debian-ports or mini-dak problem. Then I tried --variant=minbase which failed the cowbuilder --create as well but only after the debootstrap stage: debootstrap installed libaudit-common 1:3.1.2-2 instead of 1:3.1.2-2.1 so the chroot had libaudit1’s dependency on libaudit-common unfulfilled, which made a later apt-get dist-upgrade fail without manually running an apt-get -f install first (which I thankfully could do in a pbuilder hook script). This is a real problem affecting real-world scenarios (such as buildd maintainers frantically trying to stay on top of t64), and apparently at least arch:all packages can have multiple versions show up in the Packages file in Debian sid. The two failure modes are that debootstrap either results in a chroot in which packages are installed that don’t meet each other’s dependencies (which a real-world dpkg call would need --force-depends) or that debootstrap itself even aborts. The fix is of course to consider all versions of all packages, though this will be very hard; apt seems to normally only consider the latest version (unless another is installed or pinned), so doing that would be another option, which while not being helpful in situations of nōn-arch:all packages lagging would fix this bug just as well. -- System Information: Debian Release: stretch/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: m68k Kernel: Linux 6.6.15-m68k Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/lksh Init: sysvinit (via /sbin/init) Versions of packages debootstrap depends on: ii wget 1.16.3-3 Versions of packages debootstrap recommends: pn arch-test <none> ii debian-archive-keyring 2014.3 ii gnupg 1.4.19-5 ii mount 2.26.2-9 Versions of packages debootstrap suggests: ii binutils 2.25.1-1 pn squid-deb-proxy-client <none> pn ubuntu-archive-keyring <none> ii xz-utils 5.1.1alpha+20120614-2.1 pn zstd <none> -- no debconf information