五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動(dòng)態(tài)

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

發(fā)布日期:2022-04-11 14:06 | 文章來(lái)源:腳本之家

我們?cè)诟耈buntu軟件源為國(guó)內(nèi)源(比如163)之后,update出現(xiàn)下面這樣的錯(cuò)誤:

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值也不一樣,所以會(huì)出現(xiàn)Hash Sum mismatch。我們可以通過(guò)設(shè)置代理的方式解決這個(gè)問(wèn)題。

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

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

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

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

# 刪除 
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)的,就找個(gè)edu.cn的源;如果不是校園網(wǎng)的話,我個(gè)人用著163的mirror覺(jué)得還不錯(cuò)。

更簡(jiǎn)單的方法,我們可以使用aliyun的軟件源,我換了之后就沒(méi)再出現(xiàn)過(guò)這個(gè)問(wè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

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

版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問(wèn)服務(wù)

1對(duì)1客戶咨詢顧問(wèn)

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部