On Mon, Oct 13, 2008 at 06:46:07PM +1100, Ben Finney wrote:
> 
> I wasn't aware that ???apt-cacher??? works as an HTTP proxy, I'd love to 
> know how to use it that way! I thought one needs to modify the 
> requested URLs in ???sources.list??? directly.

Yes, you could leave sources.list unchanged and set Acquire::http::Proxy
in apt.conf. See man apt-cacher(1) and apt.conf(5)

> So, here is the configuration (currently disabled) on the machine that  
> has slow performance via ???apt-cacher???:
> 
> =====
> $ grep -v '^\(#.*\|\s*\)$' /etc/apt/sources.list.d/whitetree-lan.list.DISABLED
> deb http://proxy:3142/security.debian.org/debian-security/ lenny/updates main
> deb http://proxy:3142/mirror.internode.on.net/pub/debian/ lenny main
> =====
> 
> The above configuration (when enabled by renaming the file) causes the 
> behaviour reported in this bug report; so, I've currently got that 
> machine configured with this:
> 
> =====
> $ grep -v '^\(#.*\|\s*\)$' /etc/apt/sources.list.d/whitetree-lan.NOPROXY.list
> deb http://security.debian.org/debian-security/ lenny/updates main
> deb http://mirror.internode.on.net/pub/debian/ lenny main
> =====
> 
> The above configuration works properly, in contrast to the 
> configuration using the proxy.
> 
> > > The debug log doesn't currently exist (at least, I see no file 
> > > named ???/var/log/apt-cacher/debug.log???). What specifically do I 
> > > need to do to get that?
> > 
> > Set debug=0 in /etc/apt-cacher/apt-cacher.confo

> Its configuration already has ???debug=0???. I presume you mean something 
> other than that value? Perhaps ???debug=1??? or something else?
> 

Sorry, that should be debug=1 :)

> Once I've changed the configuration, is there some particular sequence 
> of actions you want me to perform before giving the resulting debug 
> log output?

Restore the disabled sources.list that triggers the bug and then do
apt-get update. /var/log/apt-cacher/error.log should then contain
debug info about what apt-cacher is doing.

Mark



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to