Skip to content

Instantly share code, notes, and snippets.

@thomasn
Created July 16, 2012 13:21
Show Gist options
  • Save thomasn/3122688 to your computer and use it in GitHub Desktop.
Save thomasn/3122688 to your computer and use it in GitHub Desktop.
Fix 'public key is not available: NO_PUBKEY' errors
for i in `sudo apt-get -qq update 2>&1 | sed 's/.*PUBKEY //'`; do sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment