[Ubuntu] GPG error: NO_PUBKEY

Sunday, June 12, 2011
意見
If we added some extra source entries to source.lists, we may meet the "NO_PUBKEY" problem when we ran 'sudo apt-get update'. Detail log stated below.

W: GPG error: http://ppa.launchpad.net natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D6B6DB186A68F637

This is because we don't have the key of those new-added entries.
The following commands should help.
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D6B6DB186A68F637

That's it, now you should be able to run "sudo apt-get update" again without problems.