build: take bullseye and buster packages from archive.debian.org
images / images (push) Failing after 9m40s
images / images (push) Failing after 9m40s
Debian has archived both: buster is gone from deb.debian.org and bullseye's security pool there now 404s on packages its index still lists (run 6: xz-utils, dpkg-dev, libdpkg-perl). archive.debian.org serves both releases, including libpcap 1.8.1-6+deb10u1 for the static link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UHXzGrsxfkGk8LmwrBbHNZ
This commit is contained in:
1 parent
8d36dc2f9b
commit
5ae90e4796
1 file changed
+5
-2
@@ -32,6 +32,9 @@ ENV DEB_CROSSPLATFORMS \
|
||||
RUN <<EOCROSSCOMPILERS
|
||||
set -e
|
||||
echo 'Acquire::Retries "6";' > /etc/apt/apt.conf.d/80-retries
|
||||
# bullseye (this base) and buster (libpcap below) are archived: deb.debian.org
|
||||
# no longer serves all their packages, archive.debian.org does
|
||||
sed -i 's|http://deb.debian.org|http://archive.debian.org|g' /etc/apt/sources.list
|
||||
for platform in ${DEB_CROSSPLATFORMS}; do dpkg --add-architecture $platform; done
|
||||
apt-get update
|
||||
apt-get install -y build-essential
|
||||
@@ -48,8 +51,8 @@ EOCROSSCOMPILERS
|
||||
# Install libpcap-dev version 1.8.1-6+deb10u1 for all supported
|
||||
# architectures.
|
||||
RUN <<EOBUSTERREPOS
|
||||
echo "deb http://deb.debian.org/debian/ buster main" > /etc/apt/sources.list.d/busters-repos.list
|
||||
echo "deb-src http://deb.debian.org/debian/ buster main" >> /etc/apt/sources.list.d/busters-repos.list
|
||||
echo "deb http://archive.debian.org/debian/ buster main" > /etc/apt/sources.list.d/busters-repos.list
|
||||
echo "deb-src http://archive.debian.org/debian/ buster main" >> /etc/apt/sources.list.d/busters-repos.list
|
||||
apt-get update
|
||||
for platform in ${DEB_CROSSPLATFORMS}; do apt-get install -y libpcap0.8:${platform}=1.8.1-6+deb10u1 libpcap0.8-dev:${platform}=1.8.1-6+deb10u1 libpcap-dev:${platform}=1.8.1-6+deb10u1; done
|
||||
EOBUSTERREPOS
|
||||
|
||||
Reference in new issue
Block a user