08 February 2012

60. i18n_translation and no Package:Header error on Debian Testing 32 bit

I'm doing this via an apt-cache server (i.e. the rather than ftp.au.debian.org) -- but the problem is unrelated to the apt-cache server.


Get:1 testing InRelease [179 kB]
Ign testing/contrib TranslationIndex
Get:2 testing/main TranslationIndex [2,154 B]
Ign testing/non-free TranslationIndex
Get:3 testing/main i386 Packages [7,146 kB]
Get:4 testing/contrib i386 Packages [48.9 kB]
Get:5 testing/non-free i386 Packages [87.5 kB]
Ign testing/contrib Translation-en_AU
Get:6 testing/contrib Translation-en [34.8 kB]
Get:7 testing/main Translation-en [3,722 kB]
Ign testing/non-free Translation-en_AU                                
Get:8 testing/non-free Translation-en [62.5 kB]
Fetched 11.3 MB in 2s (4,348 kB/s)                                                          
W: Failed to fetch copy:/var/lib/apt/lists/partial/  Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.

All the files in that directory are compressed (bz2) -- you need to enable apt-get to decompress .bz2 files.

Install bzip2

sudo apt-get install bzip2

at this point gives

Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/
E: The package lists or status file could not be parsed or opened.

So remove the offending files (2 lines):
sudo rm  /var/lib/apt/lists/
sudo rm /var/lib/apt/lists/

Now you can 

sudo apt-get install bzip2

followed by

sudo apt-get update
Hit testing InRelease
Get:1 testing/main i386 Packages/DiffIndex [2,038 B]
Get:2 testing/contrib i386 Packages/DiffIndex [2,023 B]
Get:3 testing/non-free i386 Packages/DiffIndex [2,023 B]
Ign testing/contrib TranslationIndex
Hit testing/main TranslationIndex
Ign testing/non-free TranslationIndex
Get:4 testing/contrib Translation-en [34.8 kB]
Get:5 testing/main Translation-en [3,722 kB]
Get:6 testing/non-free Translation-en [62.5 kB]
Ign testing/contrib Translation-en_AU        
Ign testing/non-free Translation-en_AU
Fetched 103 kB in 4s (25.3 kB/s)
Reading package lists... Done

Done indeed!

1 comment:

  1. Thanks for the solution. Even though I could not install bzip2 by running apt-get install. I had to copy the /bin/bzip2 from another server, and then run the rest of your solution!