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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值