Skip to content

Instantly share code, notes, and snippets.

@untoreh
Created April 4, 2018 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save untoreh/dee9f93d2b00374f2fd7a88ff972d33b to your computer and use it in GitHub Desktop.
Save untoreh/dee9f93d2b00374f2fd7a88ff972d33b to your computer and use it in GitHub Desktop.
add all missing ubuntu ppa keys
#!/bin/sh
KEYS=$(apt update 2>/dev/null | grep NO_PUBKEY | sed -r 's/.*NO_PUBKEY (.*)/\1/')
for k in $KEYS; do
apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys $k
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment