PDA

View Full Version : [ubuntu] error when trying apt-get update?



insanity99
January 27th, 2009, 05:03 PM
it updates a lot then this shows up:


W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC66403D8670A035
W: Duplicate sources.list entry http://ppa.launchpad.net intrepid/main Packages (/var/lib/apt/lists/ppa.launchpad.net_spring_ubuntu_dists_intrepid_mai n_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

eaidoido
January 27th, 2009, 05:05 PM
getting something similar in 8.04

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

Elfy
January 27th, 2009, 05:13 PM
Both of you can check for the GPG sig at wherever you have got the ppa from

insanity99 - your second error Duplicate sources.list - backup and then open the file for editing


sudo cp /etc/apt/sources.list /etc/apt/sources.list.2701
gksu gedit /etc/apt/sources.list

You should find the same line in there twice - delete one of them and save, then run


sudo apt-get update

sisco311
January 27th, 2009, 05:15 PM
Open a terminal (Applications -> Accessories -> Terminal)
and:


...


gpg --keyserver keyserver.ubuntu.com --recv 8670a035

gpg --export --armor 8670a035 | sudo apt-key add -



...


gpg --keyserver keyserver.ubuntu.com --recv 6e80c6b7

gpg --export --armor 6e80c6b7 | sudo apt-key add -


Both of you:

sudo apt-get update

Elfy
January 27th, 2009, 05:18 PM
aaah is that how you do it sisco311

FC66403D8670A035

learnt a thing then :)

ciscosurfer
January 27th, 2009, 05:25 PM
I thought PPA's couldn't be GPG signed, or at least they couldn't when I last checked. When did this change?

insanity99
January 27th, 2009, 05:28 PM
thanks guys seems to be resolved.

sisco311
January 27th, 2009, 05:35 PM
aaah is that how you do it sisco311

FC66403D8670A035

learnt a thing then :)

Yes. I don't know why, but this is a quiet common warning.

I've found the solution here: http://ubuntuforums.org/showthread.php?p=6616484 (post #2, thanks to taavikko (http://ubuntuforums.org/member.php?u=286985))

It would be nice to write a little howto for future reference,
but I'm lazy :).

Elfy
January 27th, 2009, 05:41 PM
As it's gone for the moment

:thanks: :)

SinrG202
May 24th, 2009, 03:32 PM
Solution is good. Worked for me. Ditto on above... Always good to learn something new thats handy like this