ubuntu12.04软件更新问题-校验签名出错/签名无效/Hash 校验和不符

2014-04-23

设置更新源:更新管理器 - 设置 - Ubuntu软件标签 - 下载自 设置为 “美国的服务器”

sudo apt-get update 出现问题:

写道
正在读取软件包列表... 完成
W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://archive.ubuntu.com precise-security Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/precise-security/Release

W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/ppa.launchpad.net_nvbn-rm_ppa_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources Hash 校验和不符

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

 参考: [Ubuntu12.04]“W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。”的解决办案

 尝试清理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

 还是一样的问题,除了提示信息开头少了一句:W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。

写道
下载 24.7 MB,耗时 30分 21秒 (13.6 kB/s)
W: GPG 错误:http://archive.ubuntu.com precise-backports Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/ppa.launchpad.net_nvbn-rm_ppa_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-security_main_binary-i386_Packages Hash 校验和不符

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

 参考:[已解决]ubuntu12.04更新时签名错误(BADSIG 40976EAF437D05B5) 

 尝试删除出问题密钥:

gpg --delete-key --armor 40976EAF437D05B5

 显示密钥不存在,从keyserver.ubuntu.com网站重新下载密钥并导入:

gpg --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -

 再次清除apt文件夹缓存,再更新,果然不再出现签名错误,但是依然有文件:无法下载 Hash 校验和不符

写道
下载 24.1 MB,耗时 1分 37秒 (248 kB/s)
W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

W: 无法下载 bzip2:/var/lib/apt/lists/partial/ppa.launchpad.net_nvbn-rm_ppa_ubuntu_dists_precise_main_binary-i386_Packages Hash 校验和不符

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

 试了下http走代理更新:

sudo apt-get -o Acquire::http::proxy="http://代理地址:端口/" update

 代理设置参考:Ubuntu更新源Hash Sum mismatch错误

写道
下载 2,408 kB,耗时 2分 0秒 (20.0 kB/s)
正在读取软件包列表... 完成

 更新成功

你可能感兴趣的:(更新,ubuntu,hash,签名,错误)