apt-get through a proxy connection?
Hey all,
just wondering how in the world I can get apt-get to work through my internet connection, which runs through a proxy server to my windows machine... Using pretty standard ports, http: 8080 https 8081 ftp 8021 socks 1021 etc... I can also set up ports for pass-through, but how do I get apt-get to connect through that proxy server? Thanks :) -Shade |
bumpity... I'd love to be able to do this :)
-Shade |
Just one more bump to see if anyone has an answer....
|
Try setting the HTTP_PROXY enviro variable. You do this by typing: "export HTTP_PROXY=proxyserver.com:port". Substitute FTP for the HTTP in the previous statement to do the same for the ftp proxies.
|
Sorry I jusr realised that a colon (:) and a p make a smiley. So where you see the smiley above substitute in a colon followed by a p with no spaces.
|
GODDAM SMILIES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
Actually, that environment is already set, I can browse with lynx, etc.
I will see if wget works through it as well. But apt-get is just not working... -Shade |
Hot DAMN!
After a couple hours of searching obscure web pages through google, I came up with something from a very old post on another bbs. Adding this line to apt.conf did it. I couldn't find this anywhere in the documentation or manpages. Maybe I missed it, but totally didn't see this. Acquire::http::Proxy "http://proxy.server.here:8080/"; and that's all :) -Shade |
I got it
It seems for me apt-get is ignoring apt.conf configuration.
Even if I specify the proxy servers in apt.conf, nothing happens. Must set env. vars : $ export ftp_proxy=http://192.168.1.1:80/ $ export http_proxy=http://192.168.1.1:80/ $ apt-get update ... Bad thing : $ export http_proxy=192.168.1.1:80/ $ apt-get update will result in: > 0% [Connecting to 80] and some error message Note : Internet connection in our university residence is weird. No gateway, no DNS, just proxy. :) |
All times are GMT -5. The time now is 03:14 AM. |