Skip to contentSkip to conversation

docker-image-debian-all-test-cross errors

DISCUSSION Richard Henderson 6 participants 12 messages Jul 4 – Jul 7

lore
Share & tools
lore
#0 lore raw

Has anyone else been seeing

Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/libdpkg-perl_1.22.21_all.deb 404 Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/dpkg-dev_1.22.21_all.deb 404 Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.13/libpython3.13_3.13.5-2_amd64.deb 404 Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/g/glibc/libc6-i386_2.41-12_amd64.deb 404 Not Found [IP: 151.101.22.132 80]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive eatmydata apt install -y --no-install-recommends clang dpkg-dev gdb-multiarch libclang-rt-dev": while running runtime: exit status 100
make: *** [/home/rth/qemu/src/tests/docker/Makefile.include:43: docker-image-debian-all-test-cross] Error 100

This has been consistently failing for me for a couple of weeks...

r~

#1 lore raw
Quoted 10 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/dpkg- dev_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.13/ libpython3.13_3.13.5-2_amd64.deb  404 Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/g/glibc/libc6- i386_2.41-12_amd64.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix- missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive eatmydata   apt install - y --no-install-recommends   clang  dpkg-dev  gdb-multiarch  libclang-rt-dev": while running runtime: exit status 100
make: *** [/home/rth/qemu/src/tests/docker/Makefile.include:43: docker-image-debian- all-test-cross] Error 100

Quoted 3 lines

This has been consistently failing for me for a couple of weeks...

r~

I wonder if docker build has cached the existing layers, and since apt-get update only runs in the first part of the Dockerfile then the subsequent layers try to access an old base image?

Does running "docker builder prune" (possibly with --all) help at all? That should purge the cache and force docker to rebuild all the layers again.

ATB,

Mark.

#2 lore raw
Quoted 14 lines · Mark Cave-Ayland
Quoted 12 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/dpkg- dev_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/p/python3.13/ libpython3.13_3.13.5-2_amd64.deb  404 Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch http://deb.debian.org/debian/pool/main/g/glibc/libc6- i386_2.41-12_amd64.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix- missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive eatmydata   apt install - y
--no-install-recommends   clang  dpkg-dev  gdb-multiarch  libclang-rt-dev": while
running runtime: exit status 100
make: *** [/home/rth/qemu/src/tests/docker/Makefile.include:43: docker-image-debian- all-test-cross] Error 100

Quoted 7 lines
Quoted 3 lines

This has been consistently failing for me for a couple of weeks...

r~

I wonder if docker build has cached the existing layers, and since apt-get update only runs in the first part of the Dockerfile then the subsequent layers try to access an old base image?

Does running "docker builder prune" (possibly with --all) help at all? That should purge the cache and force docker to rebuild all the layers again.

No, it doesn't.

r~

#3 lore raw
Quoted 34 lines · Richard Henderson
Quoted 33 lines · Mark Cave-Ayland
Quoted 23 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/libdpkg-
perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/dpkg-
dev_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Failed to fetch
http://deb.debian.org/debian/pool/main/p/python3.13/
libpython3.13_3.13.5-2_amd64.deb  404 Not Found [IP: 151.101.22.132
80]
Error: Failed to fetch
http://deb.debian.org/debian/pool/main/g/glibc/libc6-
i386_2.41-12_amd64.deb  404  Not Found [IP: 151.101.22.132 80]
Error: Unable to fetch some archives, maybe run apt-get update or try with --fix- missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive
eatmydata   apt install - y --no-install-recommends   clang
dpkg-dev  gdb-multiarch  libclang-rt-dev": while running runtime:
exit status 100
make: *** [/home/rth/qemu/src/tests/docker/Makefile.include:43:
docker-image-debian- all-test-cross] Error 100

Quoted 3 lines

This has been consistently failing for me for a couple of weeks...

r~

I wonder if docker build has cached the existing layers, and since apt-get update only runs in the first part of the Dockerfile then the subsequent layers try to access an old base image?

Quoted 5 lines
Quoted 3 lines

Does running "docker builder prune" (possibly with --all) help at all? That should purge the cache and force docker to rebuild all the layers again.

No, it doesn't.

Note QEMU will preferentially to use 'podman' if both docker and podman are installed. So 'docker builder prune' might be purging the wrong cache. Try 'podman builder prune', or manually run "podman pull docker.io/library/debian:13-slim" to force refresh the base image.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|
#4 lore raw
Quoted 5 lines · Daniel P. Berrangé

Note QEMU will preferentially to use 'podman' if both docker and podman are installed. So 'docker builder prune' might be purging the wrong cache. Try 'podman builder prune', or manually run "podman pull docker.io/library/debian:13-slim" to force refresh the base image.

Thanks, that did it.

r~

#5 lore raw
In reply to Richard Henderson
Quoted 3 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg-perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

...

dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026). Initially debian trixie had dpkg 1.22.21.

I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?

/mjt

#6 lore raw
Quoted 10 lines · Michael Tokarev
Quoted 3 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

...

dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.

Quoted 5 lines

I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?

/mjt

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

ATB,

Mark.

#7 lore raw
Quoted 17 lines · Mark Cave-Ayland
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

Quoted 8 lines

...
dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.
I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?
/mjt

Quoted 4 lines

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

You can always trigger a local build:

make docker-image-all-test-cross NOCACHE=1

it looks like the source tree build of images has been broken again as UNCHECKED_GOALS isn't being honoured for me.

Quoted 5 lines

ATB,

Mark.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#8 lore raw
Quoted 24 lines · Alex Bennée
Quoted 17 lines · Mark Cave-Ayland
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

Quoted 8 lines

...
dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.
I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?
/mjt

Quoted 4 lines

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

Quoted 13 lines

You can always trigger a local build:

make docker-image-all-test-cross NOCACHE=1

it looks like the source tree build of images has been broken again as UNCHECKED_GOALS isn't being honoured for me.

Quoted 5 lines

ATB,

Mark.

The right fix is to modify our dockerfiles to always combine apt update and apt install, to avoid those kind of errors.

See this doc for more details:
https://docs.docker.com/build/building/best-practices/#apt-get

Regards,
Pierrick

#9 lore raw
Quoted 34 lines · Pierrick Bouvier
Quoted 33 lines · Alex Bennée
Quoted 17 lines · Mark Cave-Ayland
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

Quoted 8 lines

...
dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.
I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?
/mjt

Quoted 4 lines

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

You can always trigger a local build:

make docker-image-all-test-cross NOCACHE=1

it looks like the source tree build of images has been broken again as UNCHECKED_GOALS isn't being honoured for me.

Quoted 2 lines
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

ATB,

Mark.

The right fix is to modify our dockerfiles to always combine apt update and apt install, to avoid those kind of errors.

We do for the main part of the dependencies from lcitool. We then do a second step for the cross compilers for which there are shenanigans to deal with non-x86 arches before installing them.

But the original failure from perl should have been picked up by the first bit.

Quoted 6 lines

See this doc for more details:
https://docs.docker.com/build/building/best-practices/#apt-get

Regards,
Pierrick

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#10 lore raw
Quoted 44 lines · Alex Bennée
Quoted 34 lines · Pierrick Bouvier
Quoted 33 lines · Alex Bennée
Quoted 17 lines · Mark Cave-Ayland
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

Quoted 8 lines

...
dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.
I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?
/mjt

Quoted 4 lines

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

You can always trigger a local build:

make docker-image-all-test-cross NOCACHE=1

it looks like the source tree build of images has been broken again as UNCHECKED_GOALS isn't being honoured for me.

Quoted 2 lines
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

ATB,

Mark.

The right fix is to modify our dockerfiles to always combine apt update and apt install, to avoid those kind of errors.

Quoted 7 lines

We do for the main part of the dependencies from lcitool. We then do a second step for the cross compilers for which there are shenanigans to deal with non-x86 arches before installing them.

But the original failure from perl should have been picked up by the first bit.

If you look at original failure from Richard, it's this reason:

```
Error: Unable to fetch some archives, maybe run apt-get update or try
with --fix-missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive eatmydata
apt install -y --no-install-recommends   clang  dpkg-dev  gdb-multiarch
libclang-rt-dev"
```

apt is even polite enough to say we should do an apt update before :)

I'll send a series fixing this, I found 3 dockerfiles that have missing apt update.

Quoted 7 lines
Quoted 6 lines

See this doc for more details:
https://docs.docker.com/build/building/best-practices/#apt-get

Regards,
Pierrick

Regards,
Pierrick

#11 lore raw
Quoted 63 lines · Pierrick Bouvier
Quoted 44 lines · Alex Bennée
Quoted 34 lines · Pierrick Bouvier
Quoted 33 lines · Alex Bennée
Quoted 17 lines · Mark Cave-Ayland
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Richard Henderson

Has anyone else been seeing

Error: Failed to fetch
http://deb.debian.org/debian/pool/main/d/dpkg/ libdpkg- perl_1.22.21_all.deb  404  Not Found [IP: 151.101.22.132 80]

Quoted 8 lines

...
dpkg (and all related packages) has been upgraded from 1.22.21 to 1.22.22 version quite a while (on Mar-2026).  Initially debian trixie had dpkg 1.22.21.
I wonder where it is getting the old version reference from? Should the previous layer be refreshed to point to the current trixie point release?
/mjt

Quoted 4 lines

If that is the case then I think you can fix it by doing a manual update of the base image to pull in the latest update locally i.e. "docker pull docker.io/library/debian:13-slim" and then rebuilding the docker images once again?

You can always trigger a local build:

make docker-image-all-test-cross NOCACHE=1

it looks like the source tree build of images has been broken again as UNCHECKED_GOALS isn't being honoured for me.

Quoted 2 lines
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

ATB,

Mark.

The right fix is to modify our dockerfiles to always combine apt update and apt install, to avoid those kind of errors.

Quoted 7 lines

We do for the main part of the dependencies from lcitool. We then do a second step for the cross compilers for which there are shenanigans to deal with non-x86 arches before installing them.

But the original failure from perl should have been picked up by the first bit.

If you look at original failure from Richard, it's this reason:

```
Error: Unable to fetch some archives, maybe run apt-get update or try
with --fix-missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive eatmydata
apt install -y --no-install-recommends   clang  dpkg-dev  gdb-multiarch
libclang-rt-dev"
```
Quoted 5 lines

apt is even polite enough to say we should do an apt update before :)

I'll send a series fixing this, I found 3 dockerfiles that have missing apt update.

Series sent:
https://lore.kernel.org/qemu-devel/[email protected]/T/#

Regards,
Pierrick