Ubuntu更新apt-get update遇到An error occurred during the signature verification.报错如何解决?

Ubuntu执行命令
sudo apt-get update

遇到报错

 

 解决方法

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
sudo apt-get update

备注:应该是签名过期了,这个命令重新刷新签名

 

 再执行命令

sudo apt-get update

 如果还是解决不了。就指定那个缺的秘钥来安装。如下命令

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

<PUBKEY>缺少的存储库公钥在哪里,例如 BA6932366A755776

我这里是

 

 在更新 

sudo apt-get update

 

 

 

 

 

 参考资料

https://hackthestuff.com/article/error-solved-an-error-occurred-during-the-signature-verification-the-following-signatures-were-invalid

https://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey

posted @ 2022-08-09 11:55  o蹲蹲o  阅读(504)  评论(0编辑  收藏  举报