On Tue, May 06, 2008 at 03:22:25PM -0400, David F. Skoll wrote:
> Package: apt-cacher
> Version: 1.5.3
> Severity: important
> 
> This single, flat cache directory causes problems if you
> try to use apt-cacher for Ubuntu as well as Debian.  For
> example, both Debian Etch and Ubuntu Gutsy ship a package
> called "xfonts-knickers".  Both of them call the file
> xfonts-knickers_0.0.1-3.1_all.deb, but the files are NOT
> the same; etch's version is 9120 bytes and Ubuntu's is
> 9156 bytes.  Downloading one distro's file overwrites the
> others and causes problems.
> 
> Ideally, apt-cacher will use different subdirectories for
> different releases.  I realize this is tricky, if not impossible,
> but it would be nice.

Thanks for this.

This is a duplicate of bugs  #354925, #366624 and #415398. They are
closed as there is a suggested work around for this in README.Debian
since 1.5.5. The relevant extract reads:

MULTIPLE REPOSITORIES:

It has been requested that apt-cacher support being used on a network that hosts
both Debian and Ubuntu boxes. There are frequent namespace clashes between the 2
distributions which have files with identical names, but different
contents. This problem was not envisaged in the original design of apt-cacher
and is difficult to accommodate.

However, it is possible to workaround this by running a separate apt-cacher
daemon for each Distribution on a different port with its own cache
directory. The first daemon will run from /etc/init.d/apt-cacher as normal. For
the second daemon, run it from /etc/rc.local with command line options to
override the configuration file. Alternatively, run the daemons from
/etc/inetd.conf:

Example command-lines are:

 apt-cacher daemon_port=3142 cache_dir=/var/cache/apt-cacher-debian
 allowed_locations=ftp.debian.org/debian

and

 apt-cacher daemon_port=3141 cache_dir=/var/cache/apt-cacher-ubuntu
 allowed_locations=archive.ubuntu.com/ubuntu

It is important to set the allowed locations directive so that each daemon
only caches a particular distribution. This can be combined with the path_map
option:

 path_map=debian ftp.debian.org/debian allowed_locations=debian

and

 path_map=ubuntu archive.ubuntu.com/ubuntu allowed_locations=ubuntu

to provide a convenient interface for clients.

I hope this helps. 

Mark



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

Reply via email to