On a 12.04 server machine, I've got Apt configured to use a proxy to grab its packages. To wit, in
/etc/apt.conf.d/80proxy, I have the two following lines:
Acquire::http::Proxy "http://user:password@proxybox:8443/"; Acquire::https::Proxy "http://user:password@proxybox:8443/";
However, when trying to do an
apt-get update, I receive an HTTP 407 (Proxy authentication required).
Further examination of the log on the proxy machine, and a TCP dump, indicates that the username and password configured in the URL are not being transmitted. The username and password never reach the proxy machine.
I've verified that this machine can access the proxy by doing a curl:
http_proxy='http://user:password@proxybox:8443/' curl google.com
I've verified that my password does not contain any special characters.
I've verified that there are no other proxy settings on the machine.
grep -ri proxy /etc/profile*returns nothing
grep -ri proxy /etc/apt/*returns nothing but the file above
env | grep -i proxyreturns nothing
Here's what the tcpdump from an attempt with curl looks like:
CONNECT apt.dockerproject.org:443 HTTP/1.1 Host: apt.dockerproject.org:443 Proxy-Authorization: Basic (redacted) User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/126.96.36.199 libidn/1.23 librtmp/2.3 Proxy-Connection: Keep-Alive
And an attempt with apt-get:
CONNECT apt.dockerproject.org:443 HTTP/1.1 Host: apt.dockerproject.org:443 User-Agent: Debian APT-CURL/1.0 (0.8.16~exp12ubuntu10.24) Proxy-Connection: Keep-Alive Cache-Control: max-age=0
Note the lack of the Proxy-Authorization header.
How do I get apt to respect the user/password settings I've defined in the configuration file?