Skip to content

Instantly share code, notes, and snippets.

@notconscious notconscious/
Created Mar 19, 2013

What would you like to do?
Auto-update apt repository keys in 248 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"; gpg --keyserver --recv $key && 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
You can’t perform that action at this time.