Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

W: GPG error: 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:… – 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
Did you try: sudo apt-key adv --keyserver --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
up vote 4 down vote accepted

This should help:

sudo apt-key adv --keyserver --recv-keys 00AABBCCDDEE0011
share|improve this answer

Your Answer


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.