Failed to get update on Ubuntu 14.04 LTS (Trusty Tahr)

When you run the update on Ubuntu 14.04 LTS (Trusty Tahr). The following error has occurred:

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. 
+6
source share
5 answers

This worked for me:

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

Hope this helps someone else. Hooray!

+8
source

There are many problems that have caused this problem. Some of them:

  • Any entry in you apt.list does not work. You or any application created the wrong entry. Storage
  • apt does not work.
  • Corruption in / var / lib / apt / lists / folder.

So, for both of them there is another solution, if you do not know the exact problem, follow these steps:

  • Use other apt mirrors. In ubuntu, there is a file name /etc/apt/sources.list and a folder containing some files in /etc/apt/sources.list.d/ . So, from there you can change the use of any other apt mirrors. How can you change your US repository to the US repository, etc. by editing these files.
  • There is another possibility that you have some other link to the repository (third party) that is currently not responding. Thus, you can also delete them from the specified files. You can also remove all third-party repositories from the list.

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

  • Delete all contents from /var/lib/apt/lists/

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

+6
source

Something is happening with us.archive.ubuntu.com server.

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

I used vim with search and replace as follows:

 sudo vim /etc/apt/sources.list :%s/us.archive/in.archive/g :wq 
+3
source

I had this problem on my ubuntu on virtual boxing before. I tried all the above, but that will not help.

When I was working with another backup script, and I found out that my server has the wrong date / time. I have change , and apt-get update works like a charm.

+1
source

The following command should work

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

Source: https://habr.com/ru/post/978701/


All Articles