0%

apt update 报错 the public key is not available

概述

apt-get update出现The following signatures couldn't be verified because the public key is not available错误,则需要手动添加key

解决方案

执行以下命令:(B02C46DF417A0893替换为报错信息中显示的值)

1
2
3
sudo gpg --keyserver keyserver.ubuntu.com --recv B02C46DF417A0893
sudo gpg --export --armor B02C46DF417A0893 | sudo apt-key add -
sudo apt-get update

参考

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