the program needs a timeout parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
auto-apt-proxy (Debian) |
Fix Released
|
Unknown
|
|||
auto-apt-proxy (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
auto-apt-proxy waits too long if there is no answer on the network.
My apt-cacher-ng is not on localhost, or the gateway but a separate machine on the LAN. Apparently, auto-apt-proxy cannot detect the cache in that case (whereas squid-deb-
# apt update
[...]14 lines of output from repositories[...]
Reading package lists... Done
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
E: Sub-process ProxyAutoDetect returned an error code (1)
Changed in auto-apt-proxy (Debian): | |
status: | Unknown → Fix Released |
This bug was fixed in the package auto-apt-proxy - 13.4
---------------
auto-apt-proxy (13.4) unstable; urgency=medium
[ Julian Andres Klode ]
* Avoid retries when proving for proxies.
Pass -o Acquire::Retries=0 to apt-helper, such that apt doesn't retry
the proxy probing, which now has exponential backoff in 2.3.7
(Closes: #992147)
[ Antonio Terceiro ]
* timeout after 5s when looking `auto-apt-proxy` up.
If a DNS lookup for the proxy takes too long, we don't to want to use it
anyway. (Closes: #979132)
-- Antonio Terceiro <email address hidden> Sun, 22 Aug 2021 20:58:06 -0300