[ubuntu-us-ut] Pass-through Cache for Apt?

Charles Curley charlescurley at charlescurley.com
Thu Oct 4 16:28:12 BST 2007

On Tue, Oct 02, 2007 at 01:08:17PM -0600, Christer Edwards wrote:
> On Tue Oct 02, 2007 at 12:33:32PM -0600, Charles Curley wrote:

> I have written tutorials on just that.  I use apt-cacher on a central
> host and tie the other hosts to it.  You do have to update the
> sources.list on the clients, but its a really small fix.
> Two links from my blog to get you started:
> http://ubuntu-tutorials.com/2007/01/08/save-bandwidth-during-updates-with-apt-cacher-ubuntu-610/
> http://ubuntu-tutorials.com/2007/10/03/saving-bandwidth-with-apt-cacher-revisited/
> (the second link will publish on the blog tomorrow)

I have that set up one one machine, with two clients, itself and one
other. The other client can update ("apt-get update") just fine when I
use the host name. The server cannot update anything if I use the host
name, and can update everything if I use localhost. The two
sources.list are identical, except for the host name.


On a bad run, I get a lot of "403 Access to cache prohibited". The
server's IP address is in the range of allowed hosts. And I can ping
it from itself as well as get the web server using lynx.

I then changed the allowed_hosts line to *, and was able to use the
host name or localhost on the sever.

I wonder if there's a bug such that apt-cacher refuses to allow
connections from its own IP address when given a range of addresses.

Since the whole mess is behind a firewall, I'm going to leave the
allowed_hosts line set to *.


Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-us-ut/attachments/20071004/24ae6bc5/attachment.pgp 

More information about the ubuntu-us-ut mailing list