我正在使用最新的Ubuntu版本。我有64位系统。当我运行sudo apt-get update时,我会在结果的末尾得到以下错误。
...
Get:79 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Get:80 http://us.archive.ubuntu.com precise-security/main i386 Packages [848 kB]
Ign http://us.archive.ubuntu.com precise/main Translation-en_IN
Ign http://us.archive.ubuntu.com precise/multiverse Translation-en_IN
Ign http://us.archive.ubuntu.com precise/restricted Translation-en_IN
Ign http://us.archive.ubuntu.com precise/universe Translation-en_IN
Fetched 30.0 MB in 13min 1s (38.4 kB/s)
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.我找不到我正在犯的错误。
我不熟悉这个命令行。拜托谁来帮我纠正一下。
谢谢
发布于 2016-03-25 08:59:29
关于错误消息,您面临两个独立的问题。
要解决公钥问题,请运行以下命令:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>其中,您应该用错误消息中提到的公钥替换,即: 16126D3A3E5C1192。
这个问题在这个答案中得到了很好的解释。要了解更多细节,请阅读答案。
同时,由于您使用64位系统,您可以使用64位Chrome.因此,通过运行以下命令,强制它只获得64位的更新:
sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"您说您正在使用最新版本的Ubuntu (应该是Wily15.10)。但是,从命令的结果可以看出,您正在获得Ubuntu精确穿山甲的更新(12.04 LTS)
这怎麽可能?
发布于 2016-03-25 09:26:10
sudo gedit /etc/apt/sources.list.d/google-chrome.list您需要做的惟一补充是在“deb”之后但在“http”之前进入amd64体系结构。不要编辑或替换此文件中的任何其他文本。
现在返回到终端并通过运行以下命令刷新您的包列表:
sudo APT -获得更新‘失败的’APT错误不应该再出现。
来源
https://askubuntu.com/questions/749990
复制相似问题