Tag Archive "apt-get"

fixing the gpg error NO_PUBKEY

Published September 16th, 2009 by Chad

You know when get those annoying NO_PUBKEY errors as you try to do an apt-get update? I’ve found how to solve that. It isn’t the nicest solution, but it works good and it is only two lines of code.

NOTE: the value KEY in both lines indicates where the key value is supposed to go (the value that apt-get cries about).

gpg --keyserver subkeys.pgp.net --recv KEY gpg --export --armor KEY | sudo apt-key add -