Package: auto-apt-proxy
Version: 16.8+deb13u1
Severity: normal
Tags: ipv6
X-Debbugs-Cc: [email protected]
Dear Maintainer,
* What led up to the situation?
Installed `apt-cacher-ng` and `avahi-daemon` on Debian 13 which by default
broadcasts an IPv4 and IPv6 address for an apt-proxy. *NB* IPv6
routing is disabled in my network router.
Installed `auto-apt-proxy` and `avahi-utils` on different Debian 13
LXC. Running `auto-apt-proxy` returns the IPv6 proxy address, but
`apt update` fails with
`Cannot initiate the connection to fe80::be24:11ff:fe1f:d527:3142
(fe80::be24:11ff:fe1f:d527). - connect (22: Invalid argument)`
* What exactly did you do (or not do) that was effective (or
ineffective)?
Turning off IPv6 in the avahi-daemon on the apt-cacher-ng machine
results in the IPv4 proxy correctly being used -> proxy itself is
functional.
Opened `/usr/bin/auto-apt-proxy` to debug, the `hit` check also
returns the same error, but this is not picked up in the grep
statement -> auto-apt-proxy incorrectly thinks the IPv6 proxy is
working
Also tested on Debian sid, logic is the same -> still a problem in
unstable
* What was the outcome of this action?
see above
* What outcome did you expect instead?
If the IPv6 does not connect, use the IPv4 address. This requires 2
changes: 1) Fix the check to included additional connection errors, and 2)
loop over
the avahi-browse results, currently only the first result is
checked (which in my case is the IPv6), and return the first one
that works.
Happy to help with further debugging/testing.
-- System Information:
Debian Release: 13.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.4-2-pve (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages auto-apt-proxy depends on:
ii apt 3.0.3
Versions of packages auto-apt-proxy recommends:
ii busybox 1:1.37.0-6+b3
ii iproute2 6.15.0-1
Versions of packages auto-apt-proxy suggests:
ii avahi-utils 0.8-16
-- no debconf information