最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Ubuntu使用國內(nèi)源出現(xiàn)Hash Sum mismatch錯誤的解決

 更新時間:2018年04月09日 11:19:13   作者:wangtaoking1  
這篇文章主要介紹了Ubuntu使用國內(nèi)源出現(xiàn)Hash Sum mismatch錯誤的解決,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

我們在更新Ubuntu軟件源為國內(nèi)源(比如163)之后,update出現(xiàn)下面這樣的錯誤:

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.

這是由于GFW的原因,我們獲取到的文件和官方源上的文件大小不一致,導(dǎo)致md5值也不一樣,所以會出現(xiàn)Hash Sum mismatch。我們可以通過設(shè)置代理的方式解決這個問題。

網(wǎng)上的解決方法挺多的:

(1)我是用這個方法解決的 

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

(2)刪掉/var/lib/apt/lists 這個目錄下的東西

# 刪除 
sudo rm -fR /var/lib/apt/lists/* 
# 新建相應(yīng)文件夾 
sudo mkdir /var/lib/apt/lists/partial 
# 重新update 
sudo apt-get update 

(3)換源。

好像是從ubuntu11.04開始,換源都可以在system settings里面直接操作了,不用命令行那么麻煩了。。。

ps:在天朝的話,如果是校園網(wǎng)的,就找個edu.cn的源;如果不是校園網(wǎng)的話,我個人用著163的mirror覺得還不錯。

更簡單的方法,我們可以使用aliyun的軟件源,我換了之后就沒再出現(xiàn)過這個問題了。

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

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論

克拉玛依市| 玉树县| 阜康市| 昭通市| 鄂州市| 威信县| 乌什县| 沧源| 德清县| 赣州市| 资溪县| 临湘市| 南漳县| 临澧县| 安吉县| 呼玛县| 普兰店市| 互助| 霸州市| 牡丹江市| 汕头市| 玉山县| 洞头县| 台南县| 剑河县| 鹤庆县| 资中县| 康平县| 波密县| 封开县| 安平县| 瓮安县| 宝清县| 越西县| 陆丰市| 历史| 育儿| 罗定市| 东辽县| 原阳县| 鄂温|