apt-get with a proxy
I cannot get apt-get to work with an HTTP proxy. I'm using squid as the
proxy server.
I issue the following commands:
export http_proxy="http://server:3128/" (where server is the name of the
proxy machine)
apt-get install blah (where blah is an actual package
name :-)
And I get the following:
Err http://http.us.debian.org stable/main wget 1.5.3-1.1
504 Gateway Time-out
Failed to fetch
http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
504 Gateway Time-out
E: Unable to fetch some archives, maybe try with --fix-missing?
On the proxy server, looking at /var/log/squid/access.log I see:
316055347.030 119543 xx.xx.xx.xx TCP_MISS/504 1161 GET
http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
- DIRECT/http.us.debian.org -
When I test the proxy with lynx it works fine. What's the deal?
--
"The wireless music box has no imaginable commercial value. Who would pay
for a message sent to nobody in particular?" -- David Sarnoff's associates
in response to his urgings for investment in the radio in the 1920s.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Jonathan Hall * jonhall@futureks.net * PGP public key available
Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
http://www.futureks.net * PGP Key ID: FE 00 FD 51
-= Running Debian GNU/Linux =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Reply to: