Debian – APT: Public Key is missing? How to fix

aptdebianxtrabackup

I updated my sources.list with

deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main

And called

 gpg --keyserver subkeys.pgp.net --recv-keys 1C4CBDCDCD2EFD2A

The Result was, that it seemed to import something, so the key was found on this sever!?

Nevertheless now I get the error:

GPG error: http://repo.percona.com squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1C4CBDCDCD2EFD2A

  1. How can I disable/ignore the keychecking in apt in general?

  2. What is the adviced way to fix the problem itself. Is there some way to search the key somewhere elese? How would I do that?

Best Answer

You have to add the key to apt using apt-key:

gpg -a --output /tmp/pub.asc --export 1C4CBDCDCD2EFD2A
sudo apt-key add /tmp/pub.asc && rm /tmp/pub.asc

cf. http://blog.edseek.com/archives/2007/03/17/apt-key-gpg-key-import-on-ubuntu-and-debian/