Package: apt-cacher
Version: 1.5-3
Severity: normal

I have a firewall with apt-cacher installed

I run update:

[EMAIL PROTECTED]:/# apt-get update
Get:1 http://localhost etch Release.gpg [189B]
Get:2 http://localhost etch/updates Release.gpg [189B]
Get:3 http://localhost etch Release [74.4kB]
Get:4 http://localhost etch/updates Release [24.3kB]
Get:5 http://localhost etch/main Packages [4296kB]
Get:6 http://localhost etch/contrib Packages [57.8kB]
Get:7 http://localhost etch/non-free Packages [83.8kB]
Fetched 4545kB in 16s (270kB/s)
Reading package lists... Done

try a dist-upgrade:

[EMAIL PROTECTED]:/# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
libldap2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 151kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://localhost etch/main libldap2 2.1.30-13.3 [151kB]
Fetched 152kB in 0s (4609kB/s)
Failed to fetch 
http://localhost:3142/ftp.nl.debian.org/debian/pool/main/o/openldap2/libldap2_2.1.30-13.3_i386.deb
  Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?

It fails:

I edit the /etc/apt/sources.list and remove the caching piece:

eg:
deb http://localhost:3142/ftp.nl.debian.org/debian/ etch main contrib non-free

becomes

deb http://ftp.nl.debian.org/debian/ etch main contrib non-free

I run update again:

[EMAIL PROTECTED]:/# apt-get update
Get:1 http://ftp.nl.debian.org etch Release.gpg [189B]
Hit http://ftp.nl.debian.org etch Release
Get:2 http://ftp.nl.debian.org etch/main Packages/DiffIndex [2038B]
Get:3 http://localhost etch/updates Release.gpg [189B]
Get:4 http://ftp.nl.debian.org etch/contrib Packages/DiffIndex [2023B]
Get:5 http://ftp.nl.debian.org etch/non-free Packages/DiffIndex [2023B]
Fetched 38.1kB in 3s (9861B/s)
Reading package lists... Done

and this time the upgrade works as expected.
I can reproduce this on several machines under my control.

[EMAIL PROTECTED]:/# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libldap2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 151kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://ftp.nl.debian.org etch/main libldap2 2.1.30-13.3 [151kB]
Fetched 151kB in 0s (527kB/s)
(Reading database ... 30761 files and directories currently installed.)
Preparing to replace libldap2 2.1.30-13.2 (using 
.../libldap2_2.1.30-13.3_i386.deb) ...
Unpacking replacement libldap2 ...
Replaced by files in installed package libldap-2.3-0 ...
Setting up libldap2 (2.1.30-13.3) ...

apt-cacher fetches the .deb file from the same archive. no corruption there.
Must be something with apt-cacher itself.

Danny


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

Reply via email to