GPG error: the public key is not available

GPG error: The following signatures couldn't be verified because the public key is not available

I have had it happen on several occasions where I try to update software and I get a GPG error like this:

$ sudo apt-get update
W: GPG error: http://inverse.ca lucid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 06FD0B51C1FF59BB

If you ever run into an issue similar to this when running apt-get update, take the GPG key fingerprint (in the above example the fingerprint is 06FD0B51C1FF59BB) and attempt to retrieve it from the Ubuntu keyserver, then add it to your  aptitude keys:

$ gpg --keyserver keyserver.ubuntu.com --recv 06FD0B51C1FF59BB
gpg: requesting key C1FF59BB from hkp server keyserver.ubuntu.com
gpg: key C1FF59BB: public key "Inverse Support (package signing) <support@inverse.ca>" imported
gpg: Total number processed: 1
gpg:               imported: 1

So, the key was found, now add it to our aptitude keys:

$ gpg --export --armor 06FD0B51C1FF59BB | sudo apt-key add -

Now, when you run apt-get update you should have no errors.

转载于:https://www.cnblogs.com/MagicLetters/p/4382870.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值