Skip to content

Instantly share code, notes, and snippets.

@stevenvo
Last active February 8, 2016 20:58
Show Gist options
  • Save stevenvo/c01d28e7b1307c3b7c27 to your computer and use it in GitHub Desktop.
Save stevenvo/c01d28e7b1307c3b7c27 to your computer and use it in GitHub Desktop.
GPG error - NO_PUBKEY
If you encounter this error while `sudo apt-get update` on Debian
W: GPG error: http://ftp.debian.org experimental Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
_Solution_
$ gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553
$ gpg -a --export 8B48AD6246925553|sudo apt-key add -
$ gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010
$ gpg -a --export 7638D0442B90D010|sudo apt-key add -
Notes: replace the key number with the one in the error message.
Check if the keys are added
$ sudo apt-key list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment