解决GPG error: The following signatures couldn’t be verified because the public key is not available
将Ubuntu的源修改为国内源:https://blog.youkuaiyun.com/Fitz1318/article/details/108627611
将Ubuntu的源修改为国内源的之后,执行apt-get update
出现错误
解决方法是
gpg --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5 //(这个根据公钥提示来写的)
gpg --export --armor 40976EAF437D05B5 | apt-key add -
再执行命令apt-get update
,就不会报错了
参考:https://blog.youkuaiyun.com/zhuiqiuzhuoyue583/article/details/90597499