[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get proxy setup



On Mon, May 22, 2000 at 01:29:01AM +1000, Peter Firmstone wrote:
> Jean-Paul Blaquiere wrote:
> 
> > > On May 22, Peter Firmstone scratched in indelible ink :
> >
> > > I'm relatively new to debian and I'm having a little confusion setting
> > > up my /etc/apt/sources.list file for use behind a squid proxy-firewall.
> > >
> > > deb http://squid.cqu.edu.au:3128/www.au.debian.org/debian stable main
> > > contrib non-US
> > >
> > exporting the http_proxy and ftp_proxy environment variables will fix
> > this.   (man sources.list)
> >
> > bash/sh/ksh
> > export http_proxy='squid.cqu.edu.au:3128'
> >
> > or csh:
> > setenv http_proxy='squid.cqu.edu.au:3128'
> >
> > /Jp.
> > --
> > Jean-Paul Blaquiere             ||   Student of Computational
> >    japester@ucc.gu.uwa.edu.au   ||   Thaumaturgy
> >         We have what is termed a one way gateway on our house.
> >         Computers are allowed to enter, but they may not leave.
> >
> > --
> > To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> Hey thanks,
> 
> That did the trick, I didn't realize it needed to be specified on the command
> line (I thought it went in the URL section of the sources.list Doh!).

Actually it should be specified as an environment variable but there is
another way as well. You can set in /etc/apt/apt.conf this option:

Acquire::http::Proxy "http://proxy.server.here:8080/";;

Which should work as well.

Cheers,
Anand



Reply to: