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

Re: apt-get proxy config?



Peter Firmstone wrote:
> 
> Hi,
> 
> 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.
> 
> I can't seem to get the format right!
> 
> I guessed that it may be:
> 
> deb http://squid.cqu.edu.au:3128/www.au.debian.org/debian stable main
> contrib non-US
> 
> however this doesn't appear right as the proxy server returns the error:
> 400 Bad Request
> 
> What am I doing wrong?

I believe apt knows about http_proxy and ftp_proxy environment
variables, so try to define them both as http://squid.cqu.edu:3128/

In case of bash:

bash$ export http_proxy="http://squid.cqu.edu:3128/";
bash$ export ftp_proxy="http://squid.cqu.edu:3128/";

or, if in [t]csh:

$ setenv http_proxy http://squid.cqu.edu:3128/
$ setenv ftp_proxy http://squid.cqu.edu:3128/

Best regards.

---
Alex Titov



Reply to: