您好,登錄后才能下訂單哦!
常出現到問題:
1、問題如下
W: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/precise/universe/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/mirrors.sohu.com_ubuntu_dists_precise_universe_i18n_Index W: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.sohu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatch W: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.
解決方法:
將/var/lib/apt/lists/partial/下的所有文件刪除,但是這可以解決大部分問題,個別源不能解決,如"/var/lib/apt /lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary- i386_Packages",無耐進入/var/lib/apt/lists/將對應的文件刪除
2、無法找到key的問題:
W: GPG 錯誤:http://ubuntu.uestc.edu.cn precise-updates Release:下列簽名無效: BADSIG40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
解決方法:
使用如下命令:
gpg --keyserver subkeys.pgp.net --recv-keys
40976EAF437D05B5
gpg -a --export 40976EAF437D05B5 | sudo apt-key add - 有時還會出現下面到問題: gpg: 下載密鑰‘437D05B5’,從 hkp 服務器 subkeys.pgp.net gpg --delete-key --armor 40976EAF437D05B5 |
刪除后重新下載密鑰:
gpg --keyserver-options http-proxy --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
保險期間:更新apt緩存:
sudo apt-get clean
cd /var/lib/apt
sudo rm -rf lists.old
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
3、問題如下:
W: Failed to fetch
bzip2:/var/lib/apt/lists/partial/ppa.launchpad.net_gladky-anton_lammps_ubuntu_dists_quantal_main_binary-i386_Packages
Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead
解決方法如下:
這是ppa的軟件到源到問題,與系統到軟件源無關,ppa是ubuntu官方專用到第三方源服務器,ppa里的軟件的源都是默認把配置文件放/etc/apt/sources.d/文件夾下面的,解決此問題到方法就是刪除/etc/apt/sources.d/的所有文件。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。