The following signatures couldn't be verified because the public key is not available: NO_PUBKEY
-
Full Error:
Err:2 http://nginx.org/packages/ubuntu xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEYThis error came up during apt-get update on ubuntu.
The fix was to add the public GPG key that appeared in the error, also mentioned on the nginx documentation: https://www.nginx.com/resources/wiki/start/topics/tutorials/install/
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <your key>
After adding this key the apt-get update worked fine.
© Lightnetics 2024