On Mon 12 Sep 2022 at 14:33:59 (+0100), Adam Weremczuk wrote:
> Switching to apt-cacher-ng brings no immediate joy :(
> 
> CLIENT (192.168.100.243)
> sudo apt update
> Err:5 http://192.168.100.1:3142/security stretch/updates Release
>   503  DNS error for hostname security: No address associated with
> hostname. If security refers to a configured cache repository, please
> check the corresponding configuration file.
> E: The repository 'http://192.168.100.1:3142/security stretch/updates
> Release' does not have a Release file.

I would expect to see lines like:

Get:2 http://security.debian.org/debian-security bullseye-security/main amd64 
libgdk-pixbuf-2.0-0 amd64 2.42.2+dfsg-1+deb11u1 [147 kB]

but with stretch/updates rather than bullseye-security, of course,
as the syntax was regularised.

> SERVER (192.168.100.1)
> 1662988978|E|769|192.168.100.243|security/dists/stretch/updates/InRelease
> [HTTP error, code: 503]
> 1662988978|M|Download of security/dists/stretch/updates/Release aborted
> 
> Why a DNS error if I use IPs internally for this exercise?

AFAIK apt-cacher-ng still needs to make contact with debian-security
as part of the process.

> Is there something wrong with sources.list on the SERVER:
> 
> deb http://ftp.uk.debian.org/debian stretch main contrib non-free
> deb-src http://ftp.uk.debian.org/debian stretch main contrib non-free
> deb http://security.debian.org/ stretch/updates main contrib non-free
> deb-src http://security.debian.org/ stretch/updates main contrib non-free

Mine were as attached, with an extra part to security's address.

> sudo apt update
> Ign:1 http://ftp.uk.debian.org/debian stretch InRelease
> Ign:2 http://hwraid.le-vert.net/debian stretch InRelease
> Hit:3 http://ftp.uk.debian.org/debian stretch Release
> Get:4 http://security.debian.org stretch/updates InRelease [59.1 kB]
> Fetched 59.1 kB in 0s (119 kB/s)
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 381 packages can be upgraded. Run 'apt list --upgradable' to see them.

Cheers,
David.
# stretch

# deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 NETINST 
20171209-12:10]/ stretch contrib main non-free

#deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 NETINST 
20171209-12:10]/ stretch contrib main non-free

deb http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/debian-security stretch/updates main contrib 
non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib 
non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free

# stretch-backports, previously on backports.debian.org
deb http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free

Reply via email to