Package: apt-cacher-ng
Version: 3.6.4-1
Severity: normal
Tags: ipv6

Dear maintainer,

I have a stock apt-cacher-ng on my laptop.  Apt's Acquire::HTTP::Proxy
is set to "http://[::1]:3142";.  I have an ordinary apt source configured
for <http://silentflame.com/debian>.  In my /etc/hosts I have a line
like this:

    fdff:9895:c0d0:1::3 silentflame.com www.silentflame.com [...]

That IPv6 address is the VPN address of the web server serving
silentflame.com.  The VPN is IPv6-only.  So, it is possible to reach the
web server via IPv6 on the VPN, or via IPv4 or IPv6 via the public
Internet.

What I expect to happen is that apt-cacher-ng obtains files from
silentflame.com via the VPN, using IPv6.  However, this works only if
my primary network interface, wlp0s20f3, has an IPv6 address.  When
wlp0s20f3 has only an IPv4 address, I get errors like this:

    spwhitton@melete:~>sudo apt-get update
    Err:1 http://silentflame.com/debian bullseye InRelease
      503  DNS error - system error [IP: ::1 3142]

'curl http://silentflame.com/debian/dists/bullseye/InRelease' can
successfully retrieve files over HTTP over the VPN, regardless of what
addresses wlp0s20f3 has, as you would expect.

A work around is to add a public Internet IPv4 entry for silentflame.com
to /etc/hosts:

    188.34.164.90 silentflame.com

But that shouldn't be necessary, right?

Thanks.

-- Package-specific info:

-- System Information:
Debian Release: 11.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-12-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-cacher-ng depends on:
ii  adduser                  3.118
ii  debconf [debconf-2.0]    1.5.77
ii  dpkg                     1.20.9
ii  libbz2-1.0               1.0.8-4
ii  libc6                    2.31-13+deb11u2
ii  libevent-2.1-7           2.1.12-stable-1
ii  libevent-pthreads-2.1-7  2.1.12-stable-1
ii  libgcc-s1                10.2.1-6
ii  liblzma5                 5.2.5-2
ii  libssl1.1                1.1.1k-1+deb11u1
ii  libstdc++6               10.2.1-6
ii  libsystemd0              247.3-6
ii  libwrap0                 7.6.q-31
ii  lsb-base                 11.1.0
ii  zlib1g                   1:1.2.11.dfsg-2

Versions of packages apt-cacher-ng recommends:
ii  ca-certificates  20210119

Versions of packages apt-cacher-ng suggests:
ii  avahi-daemon  0.8-5
pn  doc-base      <none>
ii  libfuse2      2.9.9-5

-- Configuration Files:
/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
'/etc/apt-cacher-ng/security.conf'

-- debconf information:
  apt-cacher-ng/gentargetmode: No automated setup
* apt-cacher-ng/tunnelenable: true
  apt-cacher-ng/proxy: keep
  apt-cacher-ng/port: keep
  apt-cacher-ng/cachedir: keep
  apt-cacher-ng/bindaddress: keep

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature

Reply via email to