Created
September 6, 2014 20:35
-
-
Save smockle/e6cb2b17523787970230 to your computer and use it in GitHub Desktop.
Import GPG keys that apt-get says are missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "\nProcessing key: $key"; sudo gpg --keyserver pgpkeys.mit.edu --recv $key && sudo gpg --export --armor $key | sudo apt-key add -; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment