Unable to locate package错误

时间:2023-06-05 10:09:14

W: GPG error: http://nginx.org precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF6

这个非官方源是不可信任的,解决办法是导入该源的公钥。

解决方法如下:

gpg --keyserver subkeys.pgp.net --recv 5A16033A9A6FE242

gpg --export --armor 5A16033A9A6FE242 | sudo apt-key add -

然后sudo apt-get update就OK了