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

傷城~ 2022-01-27 14:41 235阅读 0赞

将Ubuntu的源修改为国内源:https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/88777483

将Ubuntu的源修改为国内源的之后,执行

  1. sudo apt-get update

出现问题:

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

20190527091703374.png

解决方法:

  1. sudo gpg --keyserver keyserver.ubuntu.com --recv 5523BAEEB01FA116 //(这个公钥根据提示来写的)
  2. sudo gpg --export --armor 5523BAEEB01FA116 | sudo apt-key add -

再执行下面命令,就不报错了。

  1. sudo apt-get update

参考:https://blog.csdn.net/boy198332/article/details/17508469

发表评论

表情:
评论列表 (有 0 条评论,235人围观)

还没有评论,来说两句吧...

相关阅读