Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am looking for a solution that would prevent me from seeing things like:

W: GPG error: http://updates.example.com lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 00AABBCCDDEE0011

The question applies for both Debian and Ubuntu.

Isn't possible to publish the key somewhere where it can be automatically downloaded by apt-get based on it's signature?

Note: I know that I can put my signature to an we server and use wget to get it and install it from there, still I am using for a better solution.

share|improve this question
    
Try apt-get install debian-archive-keyring Courtesy: howtoforge.com/… –  saji89 Nov 15 '12 at 8:58
    
Nope, this didn't fix the problem. The KEY is from a thirdparty. –  sorin Nov 15 '12 at 9:09
1  
Did you try: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 00AABBCCDDEE0011 –  saji89 Nov 15 '12 at 9:22
    
Yes, it worked, make it an answer. BTW, is there a way to auto-add these keys when you add an apt-repository (like a single command or so?) –  sorin Nov 15 '12 at 9:24
    
Added as answer. –  saji89 Nov 15 '12 at 10:10
show 1 more comment

1 Answer 1

up vote 4 down vote accepted

This should help:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 00AABBCCDDEE0011
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.