[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#683354: Bug#684038: /usr/bin/apt-get: apt-get remove says " package cache file is corrupted"



On 06/08/12 17:27, David Kalnischkies wrote:
On Mon, Aug 6, 2012 at 5:47 PM, Nigel Horne<njh@bandsman.co.uk>  wrote:
  As denoted in the merged bug downgrading to 0.9.7.2 helps for now.
Thanks for your reply. I tried your suggestion, but it fails with the same
error:

# apt-get install apt=0.9.7.2 libapt-pkg4.12=0.9.7.2
Reading package lists... Done
E: The package cache file is corrupted
You have to do download them manually - either the 0.9.7.2 or
the few minutes ago uploaded 0.9.7.4 (if it is built) and install
it manually with dpkg.

That said something like
apt-get update -o APT::Cache-Grow=0
apt-get install libapt-pkg4.12=0.9.7.2
(or: apt-get install libapt-pkg4.12=0.9.7.4 )
might work as well as it should prevent APT from using the
faulty code to write the package cache file (and corrupting it).
(I haven't tested this workaround through.)

I tried that, and couldn't get that to work either :-(

apt-get update -o APT::Cache-Grow=0
0% [Working]
Hit http://http.us.debian.org unstable InRelease
Hit http://http.us.debian.org unstable/main Sources/DiffIndex
Hit http://http.us.debian.org unstable/contrib Sources/DiffIndex
Hit http://http.us.debian.org unstable/non-free Sources/DiffIndex
Hit http://http.us.debian.org unstable/main hurd-i386 Packages/DiffIndex
Hit http://http.us.debian.org unstable/contrib hurd-i386 Packages/DiffIndex
Hit http://http.us.debian.org unstable/non-free hurd-i386 Packages/DiffIndex
Hit http://http.us.debian.org unstable/contrib Translation-en/DiffIndex
Hit http://http.us.debian.org unstable/main Translation-en/DiffIndex
Hit http://http.us.debian.org unstable/non-free Translation-en/DiffIndex
Reading package lists... Done
......
apt-get install libapt-pkg4.12=0.9.7.2 apt=0.9.7.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '0.9.7.2' for 'libapt-pkg4.12' was not found
E: Version '0.9.7.2' for 'apt' was not found

I also tried 0.9.7.4 and got the same 'not found' error.

Could you give me the URL, please, where I download the file manually?

Thanks for bearing with me.

-Nigel


Reply to: