问题:
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错误消失
原文地址:https://www.jb51.cc/ubuntu/354305.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。