Ubuntu Update Manager Hash Sum mismatch

Asked by Mark Nighswonger

Not sure if this is a bug

Failed to download repository information

Check your Internet connection.

W:Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch
, W:Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages Hash Sum mismatch
, W:Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages Hash Sum mismatch
, W:Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatch
, W:Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages Hash Sum mismatch
, 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 update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Nighswonger
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Does:

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

Help?

Revision history for this message
marcus aurelius (adbiz) said :
#2

no big deal. it happens to me once in awhile. i just wait awhile then try updating again and everything is honky dorey.

Revision history for this message
Mark Nighswonger (marknigh) said :
#3

Yep. It's totally fine now! Thanks!

Revision history for this message
Mark Nighswonger (marknigh) said :
#4

Begone!

Revision history for this message
Simone (zmo-) said :
#5

Im just performed a fresh installation, and:

$ sudo apt-get update
...
Ign http://it.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://it.archive.ubuntu.com natty-updates/universe Translation-en_US
Ign http://it.archive.ubuntu.com natty-updates/universe Translation-en
Fetched 3 B in 24s (0 B/s)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/it.archive.ubuntu.com_ubuntu_dists_natty-updates_main_source_Sources Hash Sum mismatch

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/it.archive.ubuntu.com_ubuntu_dists_natty-updates_main_binary-amd64_Packages Hash Sum mismatch

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

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

NOTE: I ve used an aptcacher during the installation

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Did you try my code above ?

Revision history for this message
Simone (zmo-) said :
#7

I will.

I was referring to the initial "Not sure if this is a bug" .

Revision history for this message
Christopher Forster (christopherforster) said :
#8

I'm using Ubuntu 12.04 LTS (Precise Pangolin) Beta 2.

W: Klarte ikke å skaffe bzip2:/var/lib/apt/lists/partial/no.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-i386_Packages Hashsummen stemmer ikke

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

The code I gave will sort that

Revision history for this message
ardelloeixo (ardelloeixo) said :
#10

As "actionparsnip (andrew-woodhead666)" said the code did the trick.

Thankyou

(I had the error "Manager Hash Sum mismatch" after a fresh install of Ubuntu 12.04.1, and thanks to the above code it was solved) )

Revision history for this message
Paul Lerry Dirac (lerrydirac) said :
#11

Thanks "actionparsnip (andrew-woodhead666)", it worked for me.

Revision history for this message
Phill Bailey (blackheart-phill) said :
#12

I had the same problem of a hash sum mismatch - followed the steps in comment #1, but came up against a cache error. If it's useful for anyone else, I changed the two lines that read "APT::Cache-Limit=25165824" to read "APT::Cache-Limit=0" (which is the default according to the man page ie. no limit). This solved the cache error problem and thus solved the initial hash sum mismatch.

Revision history for this message
Hung Tran (hungtran) said :
#13

I have a similar problem, I have followed Andrew's instruction but have not succeeded yet.

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

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

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

Revision history for this message
Hung Tran (hungtran) said :
#14

UPDATED: I have changed my repo's server from Ubuntu's main server to another server and the problem is gone.