Need to get a bunch of pgp keys for your 3rd party linux repos fast?Aug 31st, 2012 | By admin | Category: Linux / Freebsd
Are you reinstalling your OS and having mroe than a few 3rd party repos that need to have pgp keys installed to access? Are you dreading the processing of googling them all and wgetting the keys and then importing them? dread no more because there’s an easier way! Just use the MIT keyserver to grab them and save yourself tons of time.
So you’ve just run apt-get update after adding all of your new repos into your freshly installed sources.list file and you see something like this:
W: GPG error: http://notesalexp.org squeeze Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 7FE04CB66C536B44
The easiest way to grab that key is with the following command:
apt-key adv –keyserver pgp.mit.edu –recv-keys 7FE04CB66C536B44
MIT is just one of the keyservers available but it is what I use and thank god for them because you can do that with any key you need and it will quickly add it to your machine. No muss, no fuss. Enjoy!