Your message dated Wed, 7 May 2008 00:19:00 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#479799: apt-cacher: Single flat cache directory causes
problems
has caused the Debian Bug report #479799,
regarding apt-cacher: Single flat cache directory causes problems
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
479799: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479799
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
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.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages apt-cacher depends on:
ii bzip2 1.0.3-6 high-quality block-sorting file co
ii libwww-perl 5.805-1 WWW client/server library for Perl
ii perl 5.8.8-7etch3 Larry Wall's Practical Extraction
apt-cacher recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
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
--- End Message ---