Acquire::http::proxy breaks things with apt proxies like apt-cacher
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Dapper's apt-setup puts the following line in /etc/apt/apt.conf:
Acquire:
When using official Ubuntu mirrors, this works just fine. However, when using a local cache (via apt-cacher or approx), this line causes 'apt update' to fail in the following manner:
[...]
Err http://
403 Forbidden
Err http://
403 Forbidden
[...]
Failed to fetch http://
Failed to fetch http://
[...]
Wget'ing that file works just fine (no 403 - forbidden), and if I comment out the Acquire:
Actually, it looks like this is the same as http:// bugs.debian. org/378868. Tcpdumping shows apt in dapper using the full server name in its GET string, which confuses approx (which is not an HTTP proxy, it is a normal web server which just happens to fetch and cache debian packages).
Apt shouldn't be doing this when Acquire: :http:: proxy == "false", and dapper's apt-setup probably shouldn't be setting Acquire: :http:: proxy at all in apt.conf when there is no proxy.