#1083163 autopkgtest-build-docker: fails to build Buster container

Package:
autopkgtest
Source:
autopkgtest
Submitter:
Daniel Leidert
Date:
2025-08-17 17:49:24 UTC
Severity:
normal
Tags:
#1083163#5
Date:
2024-10-02 14:14:57 UTC
From:
To:

Attempting to build a container for Buster, I observe the following error:

+ package_is_installed dpkg-dev
+ local status
+ chroot / dpkg-query -W -f ${Status} dpkg-dev
+ status=unknown ok not-installed
+ return 1
+ chroot / apt-get install -y --no-install-recommends dpkg-dev
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dpkg-dev : Depends: bzip2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c sh -eux /opt/autopkgtest/setup-testbed /' returned a non-zero code: 100


Regards, Daniel



- -- System Information:
Debian Release: trixie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.11-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autopkgtest depends on:
ii  apt-utils       2.9.8
ii  libdpkg-perl    1.22.11
ii  mawk            1.3.4.20240905-1
ii  procps          2:4.0.4-6
ii  python3         3.12.6-1
ii  python3-debian  0.1.49
ii  retry           1.0.5-3

Versions of packages autopkgtest recommends:
ii  autodep8  0.28+nmu1
ii  fakeroot  1.36-1

Versions of packages autopkgtest suggests:
ii  docker-cli           26.1.5+dfsg1-2+b1
ii  docker.io            26.1.5+dfsg1-2+b1
pn  fakemachine          <none>
ii  genisoimage          9:1.1.11-3.5
pn  incus                <none>
ii  lxc                  1:6.0.2-1
pn  lxd                  <none>
ii  ovmf                 2024.08-1
pn  ovmf-ia32            <none>
pn  podman               <none>
ii  python3-distro-info  1.9
ii  qemu-efi-aarch64     2024.08-1
ii  qemu-efi-arm         2024.08-1
pn  qemu-efi-riscv64     <none>
pn  qemu-system          <none>
ii  qemu-utils           1:9.1.0+ds-8
ii  schroot              1.6.13-5
ii  util-linux           2.40.2-9
ii  vmdb2                0.40-2
ii  zerofree             1.1.1-1+b1

- -- no debconf information

- -- debsums errors found:
debsums: changed file /usr/bin/autopkgtest-build-lxc (from autopkgtest package)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmb9VWAACgkQS80FZ8KW
0F1r4Q//Z+hZmmHr2XFsFg5Qw7W+whLCHfnCdWsY+iuA7ffnPbek4pEc3MG9SyZv
nIw6ozgEM21sZfmkEybqLluWD709X+nVh+CwVVzz1GzsYmYBLwCR02O5dTpNLLnM
QqUtziJ0eBFBeI0bnBBpAtp9dygG84da9yCxrjevDjIZctdJYzPAzUgQ+pEuj63l
riCLv3wggjDU6GXQprpi5qV3sOZIQGeXP0jQQ8B4wehe9W6TAw+3xR/HShs4/wBs
2nTBNkz3ss31MKbcEsrwMgEc0Y8eKjjcYtaXqF+M1RUYeugMVkVY2SJBBFP+3oRT
dUZdE8Q+hHVNZWHyTZ2I9BCBT2nuv0+pMu8VcFrjYGrihpdpCTqqdiiwuzSRMu3t
aKiBYJuwTOMZqjkLQU4fYg7N8k7w5s60Sa67+cCS/8Hr2Y5R7b/g03CvnVEXxXSl
0P2VMG5l23Vh2HT1q0aPqncBEmqjz0JJjzxNngIKWGEmD8ONuHlfVNlF9OabvSq8
Oc5l+VdRilE5crNfdi7/pTkWp6aQF6i7u7k5AYzhGNw0wl6tDFTB8xTZoIO7/F2U
IArnnVP3yr8iIlzjgmBi1a/zMqMZvDGkdVgsFXFtWmJWM5dLGo6SJsV4QLo10GIk
Vim8F8S9ykKt1bEioDFiYAQocF0rQR9WvLZ6vtaV0GmLTzixgHw=
=hOht
-----END PGP SIGNATURE-----

#1083163#10
Date:
2025-08-16 23:01:23 UTC
From:
To:
Control: tags -1 + patch
Control: forwarded -1 https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/584
...

This is probably because Debian 10 'buster' reached end-of-life in June
2024, and was subsequently removed from deb.debian.org and
security.debian.org.

If you are still working with end-of-life branches of Debian for
whatever reason, there are several options:

1. Write a suitable sources.list(5) for it into a file,
    using archive.debian.org, snapshot.debian.org or your own archival copy,
    then set environment variable AUTOPKGTEST_APT_SOURCES_FILE to the path to
    that file when you run autopkgtest-build-{docker,podman}. It will
    overwrite the sources.list from the original Docker image.

2. Build a working "minbase" tarball using whatever mechanism you like best
    (mmdebstrap or debootstrap or similar), and pass it to the the --tarball
    option of autopkgtest-build-{docker,podman}.

3. Base your image on the debian/eol image instead:
    autopkgtest-build-docker --image=debian/eol:buster ...
    or
    autopkgtest-build-podman --image=docker.io/debian/eol:buster ...
    (This will change the default name used for output!)

In released versions of autopkgtest, the autopkgtest-build-docker
--mirror=... option is not enough, because setup-testbed currently 
hard-codes security.debian.org.

I've opened
<https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/584> to
make it automatically select archive.debian.org - but if you're
routinely working with EOL branches of Debian, I'd recommend having your
own copy of it under your control (for example see
<https://www.freexian.com/lts/extended/docs/how-to-build-a-mirror/>), in
which case you will need to use AUTOPKGTEST_APT_SOURCES_FILE or
--tarball anyway.

     smcv

#1083163#17
Date:
2025-08-17 17:45:10 UTC
From:
To:
Hello,

Bug #1083163 in autopkgtest reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/ci-team/autopkgtest/-/commit/07d084a675dade19a5adec851ce9b8c55ccc7e95
------------------------------------------------------------------------
build-docker: Default to archive.debian.org for EOL releases

In particular this makes it possible to build test images for buster.

Closes: #1083163
Signed-off-by: Simon McVittie <smcv@debian.org>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1083163