Thank you Darac, that was my problem indeed!
What confused me was the fact that, despite being fundamentally
misconfigured, it appeared to be almost working. Just complaining about
one security mirror.
On 21/09/2022 15:36, Darac Marjal wrote:
I'm no expert in apt-cacher-ng, but the error here says that's it's
trying to look up "debian-security" as a hostname. If I'm reading this
page <https://help.ubuntu.com/community/Apt-Cacher%20NG> correctly, you
shouldn't be changing /etc/apt/sources.list to point to apt-cacher-ng,
instead, you should continue to point it to deb.debian.org or
snapshot.debian.org and, instead, tell apt to use apt-cacher-ng as an
HTTP proxy.
The protocol that a HTTP server and a HTTP proxy use are _slightly_
different. Instead of a client asking a server "Give me
/path/to/index.html", it needs to tell the proxy "Give me
/path/to/index.html from example.com". I suspect you problem comes of
trying to download packages from apt-cacher-ng, rather than proxying
through apt-cacher-ng.