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 get the following error when i do sudo apt-get update

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6AF0E940624A220

I tried following ways after reading various questions here and also by googling.

I tried sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220

did not help. I also tried sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys thinking port 11371(default) may be blocked due to firewall.

I also tried to reset everything as follows

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update && sudo apt-get upgrade

still i get the same error or get update.Any other possible solution I can try?

share|improve this question
Have you tried all the solutions here? askubuntu.com/questions/13065/… –  fossfreedom Jun 16 '13 at 8:45

1 Answer 1

up vote 24 down vote accepted

The second approach mentioned in this link worked for me. Manually download the key and add it. Hope that helps others too.

The link provides detailed explanation with screenshots. It also has some other simple methods that could be tried before doing this manually. Since it is not accessible from some regions let me describe the method that worked for me

  1. Go to Ubuntu Key-server(Click here). Here you can search your key. In my case it was 6AF0E1940624A220. Note while searching for key pre-append the key with 0x. So search for 0x6AF0E1940624A220.
  2. Click on the link provided in the pub section. This should take you to page containing the key. It should start with something like Public Key Server -- Get "0x6AF0E1940624A220"
  3. Copy the whole text(highlighted in below screen shot) from the page and save it in a file(say filename is key1).
  4. Once you have copied the data to file. Save it. Then run the following command

    sudo apt-key add key1

You will get an "OK" response.

And you are done. Repeat the procedure of other keys that might be missing.

share|improve this answer
May i ask you to describe that link here. It filtered for our country. –  shgnInc Mar 13 '14 at 9:51
@shgnInc added the relevant part. –  Aniket Thakur Mar 14 '14 at 19:22
Thnak you so much. –  shgnInc Mar 14 '14 at 19:27
Awesome answer. Thank you! –  isomorphismes Mar 29 '14 at 8:02
I signed in here just to upvote you. Thanks! –  lev Feb 12 at 3:31

protected by Community Sep 30 '14 at 11:58

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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