Skip to content

Instantly share code, notes, and snippets.

@TomCan
Last active January 9, 2017 08:52
Show Gist options
  • Select an option

  • Save TomCan/b88afca8f2d4f1131f50d6b031280319 to your computer and use it in GitHub Desktop.

Select an option

Save TomCan/b88afca8f2d4f1131f50d6b031280319 to your computer and use it in GitHub Desktop.
Add apt keys NO_PUBKEY error
for KEY in ABCDEFGHIJKLMN
do
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv $KEY
gpg --export --armor $KEY | apt-key add -
done
# oneliner
for KEY in ABCDEFGHIJKLMN; do gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv $KEY; gpg --export --armor $KEY | apt-key add -; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment