Topic: How to get a missing GPG key after adding a new repository

Copy and paste into terminal:

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 subkeys.pgp.net --recv $key && gpg --export --armor $key | sudo apt-key add -; done
Currently running "Statler" - Openbox edition.

Re: How to get a missing GPG key after adding a new repository

Definitly nice.

I'm so meta, even this acronym

Re: How to get a missing GPG key after adding a new repository

I needed this soooo bad.
Thanks!

Re: How to get a missing GPG key after adding a new repository

This is so nice to find this. Especially trying out a lot of experimental software.  This really should be stickied so everyone can find it. Thank you, thank you, thank you.

Re: How to get a missing GPG key after adding a new repository

Great idea! Did not work for my only unkeyed source (opera) sad Guess should get my lazy ass moving and fix that myself smile

BTW: I had pains to copy-paste your code from this code-box. Embedding it in a quote would make that more convenient.

Re: How to get a missing GPG key after adding a new repository

I definitely needed this.  I've been having fits for MONTHS.

I really need to learn to STFW when I have an issue.

Re: How to get a missing GPG key after adding a new repository

Really nice! Good work. Will try it as soon as I add a new repo!