12.04 apt-get hash Sum mismatch

Asked by Samvinesh Christopher on 2012-05-15

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
Linux moose 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
rm: cannot remove `/var/cache/apt/*.bin': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Get:1 http://archive.ubuntu.com precise Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:4 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Get:5 http://archive.ubuntu.com precise Release [49.6 kB]
Get:6 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Get:7 http://archive.ubuntu.com precise-backports Release [49.6 kB]
Get:8 http://archive.ubuntu.com precise-security Release [49.6 kB]
Get:9 http://archive.ubuntu.com precise/restricted Sources [5470 B]
Get:10 http://archive.ubuntu.com precise/main Sources [934 kB]
Get:11 http://archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:12 http://archive.ubuntu.com precise/universe Sources [5019 kB]
100% [12 Sources bzip2 0 B] [Waiting for headers] 398 kB/s 0s
bzip2: Data integrity error when decompressing.
 Input file = (stdin), 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.

Get:13 http://archive.ubuntu.com precise/main amd64 Packages [1273 kB]
Get:14 http://archive.ubuntu.com precise/restricted amd64 Packages [8452 B]
Get:15 http://archive.ubuntu.com precise/universe amd64 Packages [4786 kB]
100% [15 Packages bzip2 0 B] [Waiting for headers] 165 kB/s 0s
bzip2: Data integrity error when decompressing.
 Input file = (stdin), 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.

Get:16 http://archive.ubuntu.com precise/multiverse amd64 Packages [119 kB]
Get:17 http://archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:18 http://archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:19 http://archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:20 http://archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
99% [19 Packages bzip2 0 B] [20 Packages 3958 B/121 kB 3%] 223 kB/s 0s
bzip2: Data integrity error when decompressing.
 Input file = (stdin), 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.

Get:21 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:22 http://archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:23 http://archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:24 http://archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:25 http://archive.ubuntu.com precise-updates/restricted Sources [765 B]
Get:26 http://archive.ubuntu.com precise-updates/main Sources [33.1 kB]
Get:27 http://archive.ubuntu.com precise-updates/multiverse Sources [696 B]
Get:28 http://archive.ubuntu.com precise-updates/universe Sources [10.1 kB]
Get:29 http://archive.ubuntu.com precise-updates/main amd64 Packages [98.4 kB]
Get:30 http://archive.ubuntu.com precise-updates/restricted amd64 Packages [757 B]
Get:31 http://archive.ubuntu.com precise-updates/universe amd64 Packages [27.9 kB]
Get:32 http://archive.ubuntu.com precise-updates/multiverse amd64 Packages [1142 B]
Get:33 http://archive.ubuntu.com precise-updates/main i386 Packages [99.8 kB]
Get:34 http://archive.ubuntu.com precise-updates/restricted i386 Packages [770 B]
Get:35 http://archive.ubuntu.com precise-updates/universe i386 Packages [28.1 kB]
Get:36 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [1393 B]
Get:37 http://archive.ubuntu.com precise-updates/main TranslationIndex [73 B]
Get:38 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [71 B]
Get:39 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [71 B]
Get:40 http://archive.ubuntu.com precise-updates/universe TranslationIndex [73 B]
Get:41 http://archive.ubuntu.com precise-backports/main Sources [700 B]
Get:42 http://archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:43 http://archive.ubuntu.com precise-backports/universe Sources [1680 B]
Get:44 http://archive.ubuntu.com precise-backports/multiverse Sources [14 B]
Get:45 http://archive.ubuntu.com precise-backports/main amd64 Packages [559 B]
Get:46 http://archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:47 http://archive.ubuntu.com precise-backports/universe amd64 Packages [1387 B]
Get:48 http://archive.ubuntu.com precise-backports/multiverse amd64 Packages [14 B]
Get:49 http://archive.ubuntu.com precise-backports/main i386 Packages [559 B]
Get:50 http://archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:51 http://archive.ubuntu.com precise-backports/universe i386 Packages [1391 B]
Get:52 http://archive.ubuntu.com precise-backports/multiverse i386 Packages [14 B]
Get:53 http://archive.ubuntu.com precise-backports/main TranslationIndex [71 B]
Get:54 http://archive.ubuntu.com precise-backports/multiverse TranslationIndex [70 B]
Get:55 http://archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:56 http://archive.ubuntu.com precise-backports/universe TranslationIndex [71 B]
Get:57 http://archive.ubuntu.com precise-security/restricted Sources [14 B]
Get:58 http://archive.ubuntu.com precise-security/main Sources [7820 B]
Get:59 http://archive.ubuntu.com precise-security/multiverse Sources [696 B]
Get:60 http://archive.ubuntu.com precise-security/universe Sources [3653 B]
Get:61 http://archive.ubuntu.com precise-security/main amd64 Packages [33.6 kB]
Get:62 http://archive.ubuntu.com precise-security/restricted amd64 Packages [14 B]
Get:63 http://archive.ubuntu.com precise-security/universe amd64 Packages [8581 B]
Get:64 http://archive.ubuntu.com precise-security/multiverse amd64 Packages [1142 B]
Get:65 http://archive.ubuntu.com precise-security/main i386 Packages [33.6 kB]
Get:66 http://archive.ubuntu.com precise-security/restricted i386 Packages [14 B]
Get:67 http://archive.ubuntu.com precise-security/universe i386 Packages [8594 B]
Get:68 http://archive.ubuntu.com precise-security/multiverse i386 Packages [1393 B]
Get:69 http://archive.ubuntu.com precise-security/main TranslationIndex [73 B]
Get:70 http://archive.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:71 http://archive.ubuntu.com precise-security/restricted TranslationIndex [70 B]
Get:72 http://archive.ubuntu.com precise-security/universe TranslationIndex [72 B]
Get:73 http://archive.ubuntu.com precise/main Translation-en [726 kB]
Get:74 http://archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:75 http://archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:76 http://archive.ubuntu.com precise/universe Translation-en [3341 kB]
100% [76 Translation-en bzip2 0 B] [Waiting for headers] 184 kB/s 0s
bzip2: Data integrity error when decompressing.
 Input file = (stdin), 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.

Get:77 http://archive.ubuntu.com precise-updates/main Translation-en [44.2 kB]
Get:78 http://archive.ubuntu.com precise-updates/multiverse Translation-en [587 B]
Get:79 http://archive.ubuntu.com precise-updates/restricted Translation-en [267 B]
Get:80 http://archive.ubuntu.com precise-updates/universe Translation-en [17.6 kB]
Get:81 http://archive.ubuntu.com precise-backports/main Translation-en [308 B]
Get:82 http://archive.ubuntu.com precise-backports/multiverse Translation-en [14 B]
Get:83 http://archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:84 http://archive.ubuntu.com precise-backports/universe Translation-en [696 B]
Get:85 http://archive.ubuntu.com precise-security/main Translation-en [14.3 kB]
Get:86 http://archive.ubuntu.com precise-security/multiverse Translation-en [587 B]
Get:87 http://archive.ubuntu.com precise-security/restricted Translation-en [14 B]
Get:88 http://archive.ubuntu.com precise-security/universe Translation-en [6261 B]
Fetched 23.4 MB in 1min 32s (254 kB/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Translation-en Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Ign http://archive.ubuntu.com precise InRelease
Ign http://archive.ubuntu.com precise-updates InRelease
Ign http://archive.ubuntu.com precise-backports InRelease
Ign http://archive.ubuntu.com precise-security InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise-updates Release.gpg
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.ubuntu.com precise-security Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise-updates Release
Hit http://archive.ubuntu.com precise-backports Release
Hit http://archive.ubuntu.com precise-security Release
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted Sources
Hit http://archive.ubuntu.com precise-updates/main Sources
Hit http://archive.ubuntu.com precise-updates/multiverse Sources
Hit http://archive.ubuntu.com precise-updates/universe Sources
Hit http://archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-updates/main i386 Packages
Hit http://archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/main Sources
Hit http://archive.ubuntu.com precise-backports/restricted Sources
Hit http://archive.ubuntu.com precise-backports/universe Sources
Hit http://archive.ubuntu.com precise-backports/multiverse Sources
Hit http://archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted Sources
Hit http://archive.ubuntu.com precise-security/main Sources
Hit http://archive.ubuntu.com precise-security/multiverse Sources
Hit http://archive.ubuntu.com precise-security/universe Sources
Hit http://archive.ubuntu.com precise-security/main amd64 Packages
Hit http://archive.ubuntu.com precise-security/restricted amd64 Packages
Hit http://archive.ubuntu.com precise-security/universe amd64 Packages
Hit http://archive.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise-security/main i386 Packages
Hit http://archive.ubuntu.com precise-security/restricted i386 Packages
Hit http://archive.ubuntu.com precise-security/universe i386 Packages
Hit http://archive.ubuntu.com precise-security/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Get:1 http://archive.ubuntu.com precise/universe Sources [6239 kB]
Get:2 http://archive.ubuntu.com precise/universe amd64 Packages [6167 kB]
Get:3 http://archive.ubuntu.com precise/universe i386 Packages [6180 kB]
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Get:4 http://archive.ubuntu.com precise/universe Translation-en [4133 kB]
Fetched 4 B in 9s (0 B/s)
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Translation-en Encountered a section with no Package: header

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

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Samvinesh Christopher
Solved:
2012-05-18
Last query:
2012-05-18
Last reply:
2012-05-17
Sarraceno (jfhtomas) said : #1

Main Server is now working... I'm not sure, but believe that I did tested 6 hours ago from main server and didn't work...

Could be a chain reaction that started some days ago....

Samvinesh Christopher (vinesh) said : #2

Reinstalled Ubuntu 12.04 yesterday and it worked fine.

Sarraceno (jfhtomas) said : #3

I did also per mistake that I did, and now it's again nor working...

Yesterday I was working with Kubuntu 12.04 32bits pae, today with Kubuntu 12.04 64bits.

Kapil Koju (thekojueffect) said : #4

Try changing the Download Server,
Worked for me.

Sarraceno (jfhtomas) said : #5

Hooo!
I missed to update...

Bt try to believe, since was difficult to me...

This happened to me during a week course in an CISCO center. There I had suppose full net access, of course I didn't believe that was full net access...

But what I didn't espect is that every time I made "apt-get update" plus "apt-get install" or "apt-get dist-upgrade" I got some retrieved list files corrupeted...

I made some tests, at home or office everything finr, in CISCO center I got apt db for sources corrupted. So, they have some kind of bad filter or even faulty configured, probably an WAAS.

Thanks!

Yotam Benshalom (benshalom) said : #6

I keep getting this problem. Really annooying.

still get this problem..

arnold (hey-arnold-keren) said : #8

I've been solved this problem by removing the conflicting files and update the list

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

do it over and over until all conflicting files removed clearly