ubuntu 12.04 更新时出错解决办法

今天不知道为什么,在使用ubuntu更新的时候突然出错了,输出下面的一些结果

下载 20.5 MB,耗时 2分 50秒 (120 kB/s)
正在读取软件包列表… 有错误!

1
2
3
4
W: GPG 错误:http: //extras .ubuntu.com precise Release: 下列签名无效: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/extras .ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages
E: 无法解析或打开软件包的列表或是状态文件。

下面时我的解决办法

1
2
3
4
5
6
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists /partial
sudo apt-get clean
sudo apt-get update

你可能感兴趣的:(hadoop)