Tagged: public-key

Get an “… NO PUBKEY” message when enter apt-get update

The error message like below:

Err:12 http://deb.torproject.org/torproject.org bionic InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 74A941BA219EC810

Solution:
In normal case, enter sudo apt-key adv --keyserver<URL> --recv-keys <PUBKEY> command and replace the value. In this case, keyserver.ubuntu.com or deb.torproject.org is <URL> . 74A941BA219EC810 is <PUBKEY>

But sometimes you need to access the software official site to follow the instruction; Try google http://deb.torproject.org/torproject.org bionic InRelease then you can find this instruction

Enter below command to add the key

curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -