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.

When i ran an update, I get the following error.

GPG error: http://cran.wustl.edu maverick/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9

Therefore, I ran the following code and get the following error message:

$ gpg --keyserver subkeys.pgp.net --recv 51716619E084DAB9
gpg: requesting key E084DAB9 from hkp server subkeys.pgp.net
gpg: key E084DAB9: "Michael Rutter <marutter@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

How do I set a public key that works? or What can I do to fix this problem?

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

1) You can try this:

gpg --keyserver keyserver.ubuntu.com --recv E084DAB9  

and then:

 gpg --export --armor E084DAB9 | sudo apt-key add - && sudo apt-get update  

2) If "1" doesn't work (you're not alone) then you can use this:

"Some people have reported difficulties using [the first approach]. The issue was usually related to a firewall blocking port 11371. An alternative approach is to search for the key at http://keyserver.ubuntu.com:11371/ and copy the key to a plain text file, say key.txt. Then, feed the key to apt-key with

sudo apt-key add key.txt  

"

As explained here.

To make it easy for this specific case:

Searching for Michael Rutter lead us to:

Public Key Server -- Get ``0x51716619e084dab9 ''

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mQENBEy9tcUBCACnWQfqdrcz7tQL/iCeWDYSYPwXpPMUMLE721HfFH7d8ErunPKPIwq1v4Cr
NmMjcainofbu/BfuZESSK1hBAItOk/5VTkzCJlzkrHY9g5v+XlBMPDQC9u4AE/myw3p52+0N
XsnBz+a35mxJKMl+9v9ztvueA6EmLr2xaLf/nx4XwXUMSi1Lp8i8XpAOz/Xg1fspPMRhuDAG
YDnOh4uH1jADGoqYaPMty0yVEmzx74qvdIOvfgj16A/9LYXk67td6/JQ5LFCZmFsbahAsqi9
inNgBZmnfXO4m4lhzeqNjJAgaw7Fz2zqUmvpEheKKClgTQMWWNI9Rx1L8IKnJkuKnpzHABEB
AAG0I01pY2hhZWwgUnV0dG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N3jMqq1vLUESw8e
Vq2ryZRU9OIUufb5JjGNJ1Zz0Zp8hV/IPLoIv1OIocWov27YLcr6EnXuvXvU/MSm97YifdG9
UYCE99nHTioSM0Q3cgpu5EppVNrc232gyG2vlHzhsstNBx55cUmAX2fEzxuRipLS0iq4L0zU
Gdgdjn4noGDzGA==
=BF1w
-----END PGP PUBLIC KEY BLOCK-----

I) Copy this to a txt file:

gedit ~/Michael.txt  

II) Run this

sudo apt-key add ~/Michael.txt && rm ~/Michel.txt  

Also EvilPhoenix has "got a script that you can install which can allow you to execute the functions described here in a much easier one-line command, its part of a Launchpad project [he] started, the PPA for it is located here.
Its written in Bash, but that is more than enough of a requirement for it to qualify.
Its compatible with all versions of Ubuntu Lucid and later."

share|improve this answer
    
Same error message with the first command. The second command read a lot of package lists it seems. –  ATMathew Apr 22 '11 at 21:32
    
That's because the second command included sudo apt-get update in there. The first two parts of that second command are the important ones: gpg --export --armor E084DAB9 | sudo apt-key add - . This command is what will actually have the pubkey work with apt. –  Thomas W. Apr 22 '11 at 22:09
    
I've got a script that you can install which can allow you to execute the functions described here in a much easier one-line command, its part of a Launchpad project I started, the PPA for it is located here: launchpad.net/~addgpg-apt-developers/+archive/ppa . Its written in Bash, but that is more than enough of a requirement for it to qualify. It should be run as superuser, probably, but its compatible with all versions of Ubuntu Lucid and later (i'm still testing on older releases). –  Thomas W. Apr 22 '11 at 22:52
    
Thank you. If you allow, I've added it to the answer. –  desgua Apr 22 '11 at 23:07
1  
Sure, I've been credited for my script, you're allowed to spread that. As long as you give me the credit which is deserved (which you did) ;) –  Thomas W. Apr 23 '11 at 0:12
show 1 more comment
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 51716619E084DAB9
share|improve this answer
add comment

To add apt-keys you must use:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9
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.