Re: apt-get with a proxy

2000-03-03 Thread Shaul Karl
> I cannot get apt-get to work with an HTTP proxy.  I'm using squid as the
> proxy server.
> 


It is working for me (although I have it as a line in /etc/apt/apt.conf).


> I issue the following commands:
> 
> export http_proxy="http://server:3128/";  (where server is the name of the
>   proxy machine)
> apt-get install blah   (where blah is an actual package
>   name :-)
> 
> And I get the following:
> Err http://http.us.debian.org stable/main wget 1.5.3-1.1
>   504 Gateway Time-out
> Failed to fetch
> http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
>   504 Gateway Time-out
> E: Unable to fetch some archives, maybe try with --fix-missing?
> 
> On the proxy server, looking at /var/log/squid/access.log I see:
> 
> 316055347.030 119543 xx.xx.xx.xx TCP_MISS/504 1161 GET
> http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
> - DIRECT/http.us.debian.org -
> 


Perhaps you had a DIRECT directive line in /etc/apt/apt.conf?

[07:32:50 tcl8.3]$ zgrep "DIRECT" /usr/share/doc/apt/examples/configure-index.g
z
Proxy::http.us.debian.org "DIRECT";  // Specific per-host setting
Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
[07:33:05 tcl8.3]$ 

Posting your /etc/apt/apt.conf might help.

> When I test the proxy with lynx it works fine.  What's the deal?
> 
> 
> 
> --
> "The wireless music box has no imaginable commercial value. Who would pay
> for a message sent to nobody in particular?" -- David Sarnoff's associates
> in response to his urgings for investment in the radio in the 1920s.
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>   Jonathan Hall  *  [EMAIL PROTECTED]  *  PGP public key available
>  Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
>  http://www.futureks.net  *  PGP Key ID: FE 00 FD 51
>   -=  Running Debian GNU/Linux  =-
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

-- 
Shaul Karl [EMAIL PROTECTED]
An elephant is a mouse with an operating system.



Re: apt-get with a proxy

2000-03-03 Thread Jason Gunthorpe

On Thu, 2 Mar 2000, Jonathan Hall wrote:

> And I get the following:
> Err http://http.us.debian.org stable/main wget 1.5.3-1.1
>   504 Gateway Time-out

This is an error directly from squid, there is something wrong on that
end.

Jason


apt-get with a proxy

2000-03-03 Thread Jonathan Hall
I cannot get apt-get to work with an HTTP proxy.  I'm using squid as the
proxy server.

I issue the following commands:

export http_proxy="http://server:3128/";  (where server is the name of the
proxy machine)
apt-get install blah (where blah is an actual package
name :-)

And I get the following:
Err http://http.us.debian.org stable/main wget 1.5.3-1.1
  504 Gateway Time-out
Failed to fetch
http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
  504 Gateway Time-out
E: Unable to fetch some archives, maybe try with --fix-missing?

On the proxy server, looking at /var/log/squid/access.log I see:

316055347.030 119543 xx.xx.xx.xx TCP_MISS/504 1161 GET
http://http.us.debian.org/debian/dists/stable/main/binary-i386/web/wget_1.5.3-1.1.deb
- DIRECT/http.us.debian.org -

When I test the proxy with lynx it works fine.  What's the deal?



--
"The wireless music box has no imaginable commercial value. Who would pay
for a message sent to nobody in particular?" -- David Sarnoff's associates
in response to his urgings for investment in the radio in the 1920s.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Jonathan Hall  *  [EMAIL PROTECTED]  *  PGP public key available
 Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
 http://www.futureks.net  *  PGP Key ID: FE 00 FD 51
  -=  Running Debian GNU/Linux  =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -