diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-12-18 15:20:07 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-12-18 15:20:07 -0700 |
commit | d9af8d64f9665823b5af67b47f1ad3e3b608caff (patch) | |
tree | 2d1320f93866894e8b58534122cac181a679d780 /src | |
parent | ca8728a5872662bf391ffb4bdcd9fe014ad2c993 (diff) | |
download | consfigurator-d9af8d64f9665823b5af67b47f1ad3e3b608caff.tar.gz |
APT:USES-LOCAL-CACHER: use an IP address, not a name, for localhost
The --variant=buildd argument to debootstrap(8), used by default by
SBUILD:BUILT, produces a chroot without any /etc/hosts file. Thus processes
in the chroot, including apt(8), may not be able to resolve "localhost".
This is relevant to the case of APT:USES-LOCAL-CACHER outside the chroot and
APT:USES-PARENT-PROXY within, as suggested by SBUILD:BUILT's docstring.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src')
-rw-r--r-- | src/property/apt.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp index 7204e25..da56fa7 100644 --- a/src/property/apt.lisp +++ b/src/property/apt.lisp @@ -216,7 +216,7 @@ only upgrade Debian stable." (defproplist uses-local-cacher :posix () (:desc "apt uses local apt cacher") (service-installed-running "apt-cacher-ng") - (proxy "http://localhost:3142")) + (proxy "http://[::1]:3142")) (defun get-mirrors () (or (get-hostattrs :apt.mirror) (call-with-os #'get-default-mirrors))) |