For quite some time now Debian’s repositories have been relying on gpg keys to ensure the authenticity and integrity of their packages.
One thing no one had the decency of explaining is how to get a certain repository’s key into one’s “trusted ring” so apt won’t complain when downloading packages from there.
Well, I’m going to go right to the point and tell exactly what to do.
- Add the repository’s address to sources.list (if you have any doubts try man 5 sources.list)
- Reload the package lists (through “apt-get update” or Synaptic’s “Reload”). It will complain about not having the key to the repository. In that complaint, it will show you the ID of the repository. Write down the last 8 digits of it.
- With this information in hands, you’re able to download that repository’s key using the following command (replace XXXXXXXX with the number you wrote down):
- Now all you have to do is to import that key into apt’s key database:
- And you’re done. Now run refresh the package lists again and apt won’t bug you anymore.
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys XXXXXXXX
gpg --armor --export XXXXXXXX | apt-key add -
Leave a Reply