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

This question already has an answer here:

Here is the link, please help me what it means below: precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

What should I do with the link above

share|improve this question

marked as duplicate by Thomas Ward, Raja, bodhi.zazen, Mitch, Seth Jul 11 '13 at 21:59

This question was marked as an exact duplicate of an existing question.

General hint: If you include the complete terminal output from the command you used typed into terminal to the command prompt after it fails, that often helps. – Marc Jul 11 '13 at 16:57

Well, firstly you gave a general link to the site as opposed to the specific one I am sure you meant to.

However, easy fix.

When I run into a PPA and I can't get the PUBKEY, I wrote a little something, or borrowed, it, I don't remember, and I even made it an alias to throw it into my .bashrc so I can simply hit a few letters.

Here is the code.

alias pubkey="for i in `sudo aptitude update 2>&1 | grep NO_PUBKEY | awk '{print $NF;}'`; do sudo apt-key adv --keyserver --recv-keys $i; done"

As you can see, it searches for missing pubkeys and then sends off to the keyservers at ubuntu to update your system witht hem. Trust me, run this and you will be alright.

Throw that into your .bashrc, then type source .bashrc and finally pubkey and all your worries are over.

Just make sure you have aptitude installed first, just a quick sudo apt-get install aptitude and you will be fine.

share|improve this answer

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