Package: apt-cacher
Version: 1.5.1
Severity: important

The cleanup of the package cache should normally stop, of any
of the sources or packages files are unreadable, but this is
not the case.

As you can see from the following excerpt, unpacking one 
bzip2-compressed package file failed, because it was corrupt,
but apt-cacher-cleanup just went on and thus deleted all i386
packages from my package cache.

[...]
R: debian_dists_sid_main_binary-i386_Packages.bz2

bzcat: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzcat: Success
        Input file = debian_dists_sid_main_binary-i386_Packages.bz2, output 
file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

R: debian_dists_sid_main_binary-powerpc_Packages.bz2
R: debian_dists_sid_main_binary-sparc_Packages.bz2
R: debian_dists_sid_main_source_Sources.bz2
[...]
Found 58802 valid file entries
Removing source: 9base_2-1_i386.deb and company...
Removing source: a2ps_4.13b.dfsg.1-0.2_i386.deb and company...
Removing source: akregator_3.5.1-1_i386.deb and company...
Removing source: amavisd-new-milter_2.3.3-6_i386.deb and company...
Removing source: amsn_0.95-2_i386.deb and company...
Removing source: amule-common_2.1.0-3_i386.deb and company...
Removing source: amule-daemon_2.1.0-3_i386.deb and company...
Removing source: amule-utils_2.1.0-3_i386.deb and company...
Removing source: amule_2.1.0-3_i386.deb and company...
[...]

To work around this problem, I added the follwing (very crude
and inefficient) code to apt-cacher-lib.pl just before the open()
in line 129:

  `$cat $name >/dev/null` || die("C: Error processing $name, cleanup 
stopped\n");

The open() itself always returns 0 as long as $cat is available, even
if the command itself fails.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (950, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.32-190
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages apt-cacher depends on:
ii  bzip2                         1.0.3-2    high-quality block-sorting file co
ii  libwww-perl                   5.803-4    WWW client/server library for Perl
ii  perl                          5.8.8-2    Larry Wall's Practical Extraction 

apt-cacher recommends no packages.

-- debconf-show failed


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

Reply via email to