LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to add public keys? (https://www.linuxquestions.org/questions/debian-26/how-to-add-public-keys-637928/)

parent's_basement 04-26-2008 01:36 AM

How to add public keys?
 
Hello,

When update with aptitude I get:

W: GPG error: http://www.backports.org etch-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EA8E8B2116BA136C
W: You may want to run apt-get update to correct these problems

How would I get the public key for backports.org and add it to my system?

Thx,

pb

datopdog 04-26-2008 01:49 AM

Instructions are here http://www.backports.org/dokuwiki/do...d=instructions

Junior Hacker 04-26-2008 02:00 AM

Code:

#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys @@@@@@@@
#gpg --armor --export @@@@@@@@ | apt-key add -

Those two commands work very well, you just have to replace the eight @ symbols with the last eight digits of the key apt said you're missing. In your case they would look like this:
Code:

#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 16BA136C
#gpg --armor --export 16BA136C | apt-key add -


parent's_basement 04-26-2008 02:12 AM

Thanks for the help. I'll try this in the morning. ;-)

-pb

parent's_basement 04-26-2008 02:14 AM

BTW- where is the file that these keys are added to?

Thanks Again,

pb

Junior Hacker 04-26-2008 03:22 AM

Not sure, probably /etc/apt/trusted.gpg

txHarleyMan 05-04-2008 06:42 AM

A nice tool to manage keys is gui-apt-key. # aptitude install gui-apt-key. Then just copy/paste the key in and let it do the work.

sundialsvcs 04-04-2012 08:27 AM

Bump...

I recently encountered this issue when updating Debian and the two-step command sequence shown above worked fine, although the key-server mentioned was not active. (I simply omitted the "--keyserver" bit.) Is there a cleaner, e.g. one-step command to update keys that are missing?


All times are GMT -5. The time now is 08:00 AM.