本文参考:http://forum.ubuntu.org.cn/viewtopic.php?f=77&t=383815 去繁就简了
用apt-get install 或者apt-get update时候一直报下面的错误:
W: 校验签名出错。此仓库未被更新,仍然使用以前的索引文件。GPG 错误:http://cn.archive.ubuntu.com precise-backports Release: 下列签名无效: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_main_i18n_Translation-en
E: 无法解析或打开软件包的列表或是状态文件。
解决方法
$ sudo -i
# apt-get clean
# cd /var/lib/apt
# mv lists lists.back
# mkdir -p lists/partial
# apt-get clean
# apt-get update