Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Trouble downloading updates due to “Hash sum mismatch” error

I am using ec2 Ubuntu instances now for some time and never had a problem with. Today I created a new Ubuntu 12.04 LTS Precise EBS boot on US-east-1, seems to be a bad build.

While doing a sudo apt-get update it breaks and says:

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources
Hash Sum mismatch

This is on a fresh instance. So I reckon something went wrong when creating it. What can be done to fix it?

share|improve this question

marked as duplicate by fossfreedom Nov 6 '12 at 11:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What is the specific AMI id you ran? –  Eric Hammond Oct 30 '12 at 23:49
    
ami-9c78c0f5 seems broken. Thanks –  Kave Oct 31 '12 at 0:00

2 Answers 2

I'm currently experiencing this problem as well. The solution at the moment is to remove the /var/lib/apt/list/* files and run update again.

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

Hopefully AWS will fix things on their side soon.

share|improve this answer
    
Didn't work for me. It automatically added the same repo that failed to the apt get lists Failed to fetch bzip2:/var/lib/apt/lists/partial/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_p‌​recise-updates_main_source_Sources –  Bnjmn Nov 8 '13 at 5:15

I don't believe this is a problem with Canonical's Ubuntu 12.10 AMI, but rather is a problem with the Ubuntu apt repositories hosted on AWS.

It's likely that the problem will go away soon with a repository update, but I've pinged the folks on #ubuntu-server who might know who to get in touch with. Unfortunately, everybody is at UDS right now, so it may take a while for somebody to notice and investigate.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.