How can I get apt to use a proxy?

messmate messmate at free.fr
Sun Sep 26 19:38:10 UTC 2004


On Sun, 26 Sep 2004 18:34:38 +0000 (UTC)
Frank Merenda <fmerenda at yahoo.com> wrote:

>Matt Zimmerman <mdz <at> canonical.com> writes:
>> 
>> You might try passing http_proxy=http://yourproxy:3128 from the boot
>prompt> (untested).
>
>At my last job we went through a proxy via this method. The only
>difference is that we exported our proxy settings first:
>
>1 - export your proxy settings:
>
>export http_proxy=http://yourproxy:3128
>
>2 - run apt commands as needed, i.e.
>
>apt-get update && apt-get upgrade
>
>We didn't use squid, but we used a http proxy, and this method worked
>well.
>
>-Frank
>
My 2c:
i've setted it in /etc/apt/apt.cong !
Acquire::http::Proxy "http://xx.xx.xx.xx:3128";
Change xx.xx.xx.xx to the IP of your proxy.
mess-mate





More information about the ubuntu-users mailing list