Use apt-cacher during install ?

Niki Kovacs contact at kikinovak.net
Mon Mar 28 14:31:34 UTC 2011


Hi,

In my office network, I'm using the apt-cacher proxy for APT to speed up 
downloads and updates, since we only have a relatively slow DSL 
connection here.

I wonder if there's a way to use apt-cacher directly during install. 
Until now, here's how I go about it. Before I launch an install, I 
disconnect the Ethernet cable, so the installer doesn't automatically 
download all updates, missing localizations, etc. Then, after the first 
reboot, I reconnect and edit /etc/apt/apt.conf.d/01proxy :

Acquire::http::Proxy "http://192.168.1.1:3142/";

With this one-liner, everything APT handles automatically goes through 
the package proxy.

Anyone here having experience with apt-cacher ? Is there a way to tell 
the installer to use this proxy directly ? I tried to fire up a second 
console on the Alternate Installer, but there's no /etc/apt/apt.conf.d.

Cheers,

Niki




More information about the ubuntu-users mailing list