Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of Hash Sum mismatch error when Ubuntu uses domestic sources

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

After we update the Ubuntu software source to a domestic source (e.g. 163s), update has the following error:

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.163.com_ubuntu_dists_trusty-security_main_source_Sources Hash Sum mismatch

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

This is due to GFW. The size of the file we obtained is not the same as that on the official source, resulting in a different MD5 value, so Hash Sum mismatch will appear. We can solve this problem by setting up agents.

There are many online solutions:

(1) I solved it in this way.

Sudo apt-get clean sudo apt-get update-fix-missing

(2) delete the contents of the / var/lib/apt/lists directory

# Delete sudo rm-fR / var/lib/apt/lists/* # create a new folder sudo mkdir / var/lib/apt/lists/partial # re-update sudo apt-get update

(3) change the source.

It seems that starting from ubuntu11.04, the source change can be operated directly in system settings, without the trouble of the command line.

Ps: in China, if it's a campus network, find a source of edu.cn. If it's not a campus network, I think it's not bad to use 163mirror.

For an easier way, we can use aliyun's software source, and I haven't had this problem since I changed it.

Deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors .aliyun.com / ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report