Prev: Power button does not power off any more
Next: Debian amd64 not detecting my network card (32 bit Debian does!)
From: Rob Owens on 15 Jul 2010 16:30 On Tue, Jul 13, 2010 at 04:48:58PM +0000, T o n g wrote: > Hi, > > Instead of specifying the caching machine in a file like /etc/apt/ > apt.conf.d/02proxy, is it possible to set the apt caching server via some > environment variable? > > I want to find a way to setup my laptop so that it use my local caching > server at home, yet easily to switch to direct connection when elsewhere. > I've got the same issue. I was thinking of this, but I've never tried it: deb http://my.proxy/ftp.us.debian.org/debian/ lenny main deb http://ftp.us.debian.org/debian/ lenny main and get rid of your 02proxy file. I think this might use the first deb line (which points to your proxy), and fall back to the 2nd deb line if the first is unavailable. Or maybe some pinning needs to happen. Anyway, it's an idea I've been thinking of testing out. -Rob -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100715202726.GB1698(a)aurora.owens.net |