sudo apt-get update时遇到以下问题

问题:

sudo apt-get update时遇到以下问题

W: 以下 ID 的密钥没有可用的公钥:
1397BC53640DB551

W: GPG 错误:http://archive.ubuntukylin.com:10006 xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 8D5A09DC9B929006

W: 无法下载 http://dl.google.com/Linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘non-free/binary-amd64/Packages’ in Release file (Wrong sources.list entry or malformed file)
解决方法

1、对于第一个问题:

这个是chrome仓库自己的问题,

wget -q -O - http://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

即可解决

2、对于第二个问题: GPG 错误,安装了uk-keyring后错误消失

[html] view plain copy

$sudo apt-get install uk-keyring  

或者输入

[html] view plain copy

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8D5A09DC9B929006  

3、对于第三个问题,找到/etc/apt/sources.list.d/google-chrome.list进行修改后错误消失

[html] view plain copy

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

以下是文件显示内容

THIS FILE IS AUTOMATICALLY CONFIGURED

You may comment out this entry, but any other modifications may be lost.

deb http://dl.google.com/linux/chrome/deb/ stable main

修改最后一句

THIS FILE IS AUTOMATICALLY CONFIGURED

You may comment out this entry, but any other modifications may be lost.

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

保存退出,重新suod apt-get update错误消失

猜你喜欢

转载自blog.csdn.net/lingdi2000/article/details/59220129