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

apt-get and http proxy failure



If I use an environment variable http_proxy, apt does use the specified
proxy.

However, with this in my /etc/apt/apt.conf, the proxy is silently ignored:
Acquire
{
  Queue-Mode "host";       // host|access
  Retries "0";

  // HTTP method configuration
  Http 
  {
     Proxy "http://localhost:80";;
....

I can see this in the debugging info:
Acquire::Http "";
Acquire::Http::Proxy "http://localhost:80";;
Acquire::Http::Timeout "200";
Acquire::Http::No-Cache "true";
Acquire::Http::Max-Age "86400";
Acquire::Http::No-Store "true";
Acquire::Http::Pipeline-Depth "1";
... Acquire::Http::Proxy=http://localhost:80 ... (on the get)
<- http:102%20Status%0aURI:%20http://http.us.debian.org/debian/dists/unstable/main/binary-i386/Packages.gz%0aMessage:%20Connecting%20to%20http.us.debian.org%20(206.187.92.15)  (ignoring the proxy)

What am I doing wrong?
-- 
Rick Nelson
C:\WINDOWS C:\WINDOWS\GO C:\PC\CRAWL


Reply to: