rogier.de.groot
May 14th, 2008, 12:33 PM
Hi all. I have a small network with several Ubuntu machines (three clients, two servers) and so usually use apt-cacher to save bandwidth. I normally (on previous releases) do this via apache2, which is already on the server anyway. I normally accomplish this by doing:
1) sudo apt-get install apt-cacher
2) change AUTOSTART to 1 in /etc/default/apt-cacher
3) change allowed_hosts to '192.168.1.0/24, 127.0.0.0/8' in /etc/apt-cacher/apt-cacher.conf
4) sudo /etc/init.d/apache2 restart
5) check http://server-hostname/apt-cacher to see if apt-cacher is there.
6) change /etc/apt/sources.list entries from 'deb http://stuff' to 'deb http://server-hostname/apt-cacher/stuff'.
But with Hardy this results in apt-get giving me lots of errors instead of updates! I can't figure out what's wrong. Anyone else using apt-cacher on hardy?
1) sudo apt-get install apt-cacher
2) change AUTOSTART to 1 in /etc/default/apt-cacher
3) change allowed_hosts to '192.168.1.0/24, 127.0.0.0/8' in /etc/apt-cacher/apt-cacher.conf
4) sudo /etc/init.d/apache2 restart
5) check http://server-hostname/apt-cacher to see if apt-cacher is there.
6) change /etc/apt/sources.list entries from 'deb http://stuff' to 'deb http://server-hostname/apt-cacher/stuff'.
But with Hardy this results in apt-get giving me lots of errors instead of updates! I can't figure out what's wrong. Anyone else using apt-cacher on hardy?