Processing
 

Failed to fetch update on Ubuntu 14.04 LTS (Trusty Tahr) [closed]

25/11/2014 21:39#1

Sam B

Member

Joined at: 9 months ago

Post: 3

Thank: 0

Thanked: 0

While running the update at Ubuntu 14.04 LTS (Trusty Tahr). The following error is being encountered:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-amd64/Packages  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/multiverse/binary-i386/Packages  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/i18n/Translation-en  Hash Sum mismatch  W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/i18n/Translation-en  Hash Sum mismatch  E: Some index files failed to download. They have been ignored, or old ones used instead. 
16/03/2015 15:27Top#2

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

This worked for me:

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

Hope it helps someone else. Cheers!

26/11/2014 01:00Top#3

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

Something is up with the us.archive.ubuntu.com server.

I fixed it by changing all of the us.archive.ubuntu.com urls to in.archive.ubuntu.com in /etc/apt/sources.list

I used vim with find and replace like this:

sudo vim /etc/apt/sources.list :%s/us.archive/in.archive/g :wq 
17/03/2015 09:54Top#4

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

There are many problem due to which this issue has come. Some of then are :

  1. Any entry in you apt.list is not working. You or any application has created a wrong entry.
  2. apt repository are not currently working.
  3. Corrupt in /var/lib/apt/lists/ folder.

So for both of them there are different solution, if you didn't know the exact problem then follow following steps:

  1. Use another mirrors of apt. In ubuntu there is file name /etc/apt/sources.list and folder containing some files in /etc/apt/sources.list.d/. So, from there you can change use any other mirrors of apt. Like you can change your India repository to US repository, etc. by editing these files.
  2. There is another possibility too that you having any other repository link (third party) which is not responding for the moment. So, you can also delete them from the above given files. You can also remove all third party repositories from list

    rm -rf /etc/apt/sources.list.d/*

  3. Remove all contents from /var/lib/apt/lists/

    rm -rf /var/lib/apt/lists/*

29/12/2015 07:35Top#5

Dat TT

Member

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

I had this issue on my ubuntu on virtualbox before. I tried all above but that won't help.

When I worked on other backup script and I recognized that my server had incorrect date/time. I have change that and the apt-get update works like a charm.

28/06/2016 11:34Top#6

Joined at: 8 months ago

Post: 1

Thank: 0

Thanked: 0

The following command should work

sed -i -re 's/\w+\.archive\.ubuntu\.com/archive.ubuntu.com/g' /etc/apt/sources.list 
Similar articles

Non-interactive method for dpkg-reconfigure tzdata

5 years ago - Reply: 3 - Views: 143

monit is not able to read mongod.lock

2 years ago - Reply: 3 - Views: 141

Ubuntu: hadoop command not found

2 years ago - Reply: 4 - Views: 244

C# Mono Console.ReadLine quitting

4 years ago - Reply: 1 - Views: 87

linking jsoncpp on Ubuntu

2 years ago - Reply: 1 - Views: 6

Build artifacts over ssh jenkins - PHP

3 years ago - Reply: 1 - Views: 38

Can't load Metasploit after installation

3 years ago - Reply: 5 - Views: 222

Selenium FirefoxDriver in Headless get error

2 years ago - Reply: 1 - Views: 97

Unable to start MongoDB. ERROR: addr already in use

2 years ago - Reply: 2 - Views: 120

ZSH Agnoster Theme showing machine name

2 years ago - Reply: 4 - Views: 250

Unable to start firefox browser with jenkins user

2 years ago - Reply: 2 - Views: 113

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re