Sunday, July 8, 2012

Fedora 17 : GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-17-i386

Today I tried to update my freshly upgraded Fedora 17 but it failed with the error:
GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-17-i386

On RPM Fusion I found the page with keys:

Downloaded the following key:
[get | view] (2011-10-28 21:34:45, 1.7 KB) [[attachment:RPM-GPG-KEY-rpmfusion-nonfree-fedora-17]]
...and moved it to /etc/pki/rpm-gpg/

Then I created a symbolic link to the key:
# ln -s RPM-GPG-KEY-rpmfusion-nonfree-fedora-17 RPM-GPG-KEY-rpmfusion-nonfree-fedora-17-i386

Finally I cleaned YUM and run update again:
# yum clean all
# yum check-update
# yum update
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID d2382b83: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-17-i386
Importing GPG key 0xD2382B83:
 Userid     : "RPM Fusion nonfree repository for Fedora (17) "
 Fingerprint: 6edf 41e4 8312 dfd4 521b 78fb 0dd6 34bd d238 2b83
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-17-i386
Is this ok [y/N]: y
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction