As of recent, it seems Fastly CDN which powers Debian's APT repos, no longer serves HTTP requests.
They also have not redirected HTTP to HTTPS either, though even if they did I'm not sure APT would follow it.
When using FROM rust:1.68.2-slim-bullseye
#0 0.437 Ign:1 http://deb.debian.org/debian bullseye InRelease
#0 0.438 Ign:2 http://deb.debian.org/debian-security bullseye-security InRelease
#0 0.439 Ign:3 http://deb.debian.org/debian bullseye-updates InRelease
#0 0.439 Err:4 http://deb.debian.org/debian bullseye Release
#0 0.439 404 Not Found [IP: 146.75.34.132 80]
#0 0.440 Err:5 http://deb.debian.org/debian-security bullseye-security Release
#0 0.440 404 Not Found [IP: 146.75.34.132 80]
#0 0.440 Err:6 http://deb.debian.org/debian bullseye-updates Release
#0 0.440 404 Not Found [IP: 146.75.34.132 80]
#0 0.441 Reading package lists...
#0 0.445 E: The repository 'http://deb.debian.org/debian bullseye Release' does not have a Release file.
#0 0.445 E: The repository 'http://deb.debian.org/debian-security bullseye-security Release' does not have a Release file.
#0 0.445 E: The repository 'http://deb.debian.org/debian bullseye-updates Release' does not have a Release file.
But a simple sed fixes this:
RUN sed -i 's|http://|https://|g' /etc/apt/sources.list
As of recent, it seems Fastly CDN which powers Debian's APT repos, no longer serves HTTP requests. They also have not redirected HTTP to HTTPS either, though even if they did I'm not sure APT would follow it.
When using
FROM rust:1.68.2-slim-bullseye
But a simple
sed
fixes this:Please let me know if I can provide more information.