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错误消失

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...