🐛 Fix apt mirror URLs in EOL and bootstrap Dockerfiles 🐛

18.04 and 20.04 were pointing to old-releases.ubuntu.com for bionic/focal,
which returns 404s (those releases have been removed from old-releases).
24.10 arm64 was using old-releases.ports.ubuntu.com which doesn't exist —
old-releases.ubuntu.com serves all architectures.
26.04 was trying to pull casjaysdev/ubuntu:26.04 as its base, causing a
chicken-and-egg failure since that image hasn't been built yet.
- Dockerfile.18.04: switch amd64 mirror to archive.ubuntu.com/security.ubuntu.com, arm64 to ports.ubuntu.com/ubuntu-ports
- Dockerfile.20.04: same mirror fix as 18.04 for focal
- Dockerfile.24.10: unify arm64 old-releases to old-releases.ubuntu.com/ubuntu (no ports variant exists)
- Dockerfile.26.04: change PULL_URL from casjaysdev/ubuntu to ubuntu to bootstrap from official base image

Dockerfile.18.04
Dockerfile.20.04
Dockerfile.24.10
Dockerfile.26.04
This commit is contained in:
2026-05-29 14:21:51 -04:00
parent 32faf5eb1b
commit bacfd7daa8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ RUN set -e; \
echo "$LANG UTF-8" >"/etc/locale.gen"; \
echo 'export DEBIAN_FRONTEND="'${DEBIAN_FRONTEND}'"' >"/etc/profile.d/apt.sh" && chmod 755 "/etc/profile.d/apt.sh"; \
arch="$(dpkg --print-architecture)"; \
case "$arch" in amd64|i386) ubuntu_mirror="http://old-releases.ubuntu.com/ubuntu"; ubuntu_security="$ubuntu_mirror" ;; *) ubuntu_mirror="http://old-releases.ports.ubuntu.com/ubuntu-ports"; ubuntu_security="$ubuntu_mirror" ;; esac; \
case "$arch" in amd64|i386) ubuntu_mirror="http://old-releases.ubuntu.com/ubuntu"; ubuntu_security="$ubuntu_mirror" ;; *) ubuntu_mirror="http://old-releases.ubuntu.com/ubuntu"; ubuntu_security="$ubuntu_mirror" ;; esac; \
printf '%s\n' \
"deb ${ubuntu_mirror} oracular main restricted universe multiverse" \
"deb ${ubuntu_mirror} oracular-updates main restricted universe multiverse" \