GPG 错误:http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY

运行

sudo apt-get update

报错

W: GPG error: http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BA6932366A755776
W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

解决办法

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA6932366A755776

注意最后一串数字字母改成自己的那个失效的(报错信息里面的):NO_PUBKEY BA6932366A755776

运行结果如下:

joanna@joanna-System-Product-Name:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA6932366A755776
Executing: /tmp/tmp.ntHwsGlfhO/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
BA6932366A755776
gpg: requesting key 6A755776 from hkp server keyserver.ubuntu.com
gpg: key 6A755776: public key "Launchpad PPA for deadsnakes" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
joanna@joanna-System-Product-Name:~$ sudo apt-get update 
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 http://linux.teamviewer.com/deb stable InRelease                         
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:4 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                     
Hit:5 http://packages.ros.org/ros/ubuntu xenial InRelease                      
Get:6 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRelease [18.1 kB]
Hit:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:8 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Ign:9 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Hit:10 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease   
Hit:11 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
Ign:13 https://deepin-wine.i-m.dev  InRelease                               
Hit:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
Get:15 https://deepin-wine.i-m.dev  Release [1,611 B]
Ign:16 https://deepin-wine.i-m.dev  Release.gpg
Fetched 19.7 kB in 2s (7,804 B/s)
Reading package lists... Done
joanna@joanna-System-Product-Name:~$ 

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

JoannaJuanCV

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值