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


將Ubuntu的源修改為國內源:https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/88777483

將Ubuntu的源修改為國內源的之后,執行

sudo apt-get update

出現問題:

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

解決方法:

  1.  
    sudo gpg --keyserver keyserver.ubuntu.com --recv 5523BAEEB01FA116 //(這個公鑰根據提示來寫的)
  2.  
     
  3.  
    sudo gpg --export --armor 5523BAEEB01FA116 | sudo apt-key add -

再執行下面命令,就不報錯了。

sudo apt-get update


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM