Chris Grau wrote:
On Fri, Dec 21, 2007 at 04:47:46PM -0800, Ralph Shumaker wrote:
   yum refuses to update:
perl-Test-Harness
perl-Test-Simple
   and gives this complaint:
GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dries'

I don't remember having to deal with such things before.  Shouldn't
yum automatically get the KEYs it needs?

What do I need to do to get it to go?

Normally, these files are installed along with the repo RPM.

    [EMAIL PROTECTED] ~]$ rpm -qf /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dries
    rpmforge-release-0.3.6-1.el4.rf

However, you may not have installed the yum repository config with the
RPM, instead copying it from somewhere.

[EMAIL PROTECTED] ~]$ rpm -qf /etc/yum.repos.d/rpmforge.repo rpmforge-release-0.3.6-1.el4.rf

[EMAIL PROTECTED] ~]$ grep gpgkey /etc/yum.repos.d/rpmforge.repo gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag

As you can see, I happen to use Dag's instead of Dries' key.  You don't
need to go to the trouble of installing the RPM, however.

    [EMAIL PROTECTED] ~]$ sudo rpm --import 
http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt

Thanks for that.  Now I know the right way.  :)

I was starting to think that no one was going to respond so I just did a search for the file RPM-GPG-KEY-rpmforge-dries. Then I did:
# cd /etc/pki/rpm-gpg/
and then I did:
# wget ftp://.../RPM-GPG-KEY-rpmforge-dries

The next time I ran:
# yum update perl-Test-\*
yum asked me if I wanted to add (or register or somesuch) the key.

It seems to have worked.



--
Ralph

--------------------
Introducing ambiguity is bad.
--Stewart Stremler

Give me ambiguity, or give me something else!
--kelsey hudson


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to