LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get through a proxy connection? (https://www.linuxquestions.org/questions/linux-software-2/apt-get-through-a-proxy-connection-67821/)

Shade 06-24-2003 08:12 PM

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

Shade 06-25-2003 06:33 PM

bumpity... I'd love to be able to do this :)


-Shade

Shade 06-29-2003 09:15 PM

Just one more bump to see if anyone has an answer....

adz 06-29-2003 11:45 PM

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.

adz 06-29-2003 11:48 PM

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.

adz 06-29-2003 11:49 PM

GODDAM SMILIES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Shade 07-01-2003 08:23 PM

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

Shade 07-01-2003 08:44 PM

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

vmicho 09-13-2003 11:21 AM

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.