Thursday, August 16, 2012

How to fix the NO_PUBKEY / GPG error ?

When updating the Debian based system, apt-get may display an error message like:

W: GPG error: testing Release:     
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 127908312D230C5F

W: There is no public key available for the following key IDs:  127908312D230C5F    

To solve this problem, get the key using gpg command and add it to the local apt repository using apt-key add command as shown below:

#gpg --keyserver --recv-key  127908312D230C5F         
#gpg -a --export 127908312D230C5F | sudo apt-key add -
#apt-get update

No comments:

Post a Comment