首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >sudo apt-get更新中的错误

sudo apt-get更新中的错误
EN

Ask Ubuntu用户
提问于 2016-03-25 07:59:40
回答 2查看 1.6K关注 0票数 0

我正在使用最新的Ubuntu版本。我有64位系统。当我运行sudo apt-get update时,我会在结果的末尾得到以下错误。

代码语言:javascript
运行
复制
...
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.

我找不到我正在犯的错误。

我不熟悉这个命令行。拜托谁来帮我纠正一下。

谢谢

EN

回答 2

Ask Ubuntu用户

发布于 2016-03-25 08:59:29

关于错误消息,您面临两个独立的问题。

GPG错误:

要解决公钥问题,请运行以下命令:

代码语言:javascript
运行
复制
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

其中,您应该用错误消息中提到的公钥替换,即: 16126D3A3E5C1192。

谷歌Chrome源代码列表

这个问题在这个答案中得到了很好的解释。要了解更多细节,请阅读答案。

同时,由于您使用64位系统,您可以使用64位Chrome.因此,通过运行以下命令,强制它只获得64位的更新:

代码语言:javascript
运行
复制
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版本

您说您正在使用最新版本的Ubuntu (应该是Wily15.10)。但是,从命令的结果可以看出,您正在获得Ubuntu精确穿山甲的更新(12.04 LTS)

这怎麽可能?

票数 0
EN

Ask Ubuntu用户

发布于 2016-03-25 09:26:10

  1. 打开一个新的终端窗口并运行以下命令:

sudo gedit /etc/apt/sources.list.d/google-chrome.list

  1. 在打开的文本文件中,编辑该文件,使该行读到:

deb arch=amd64稳定主

您需要做的惟一补充是在“deb”之后但在“http”之前进入amd64体系结构。不要编辑或替换此文件中的任何其他文本。

  1. 命中拯救。关闭Gedit窗口。

现在返回到终端并通过运行以下命令刷新您的包列表:

sudo APT -获得更新‘失败的’APT错误不应该再出现。

来源

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/749990

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档