Red Hat Bugzilla – Bug 138527
Key import message on initial install not working behavior
Last modified: 2014-01-21 17:50:46 EST
Description of problem:
After a fresh FC3 install, when running yum update, the message about
keys to import is incorrect.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Fresh minimal FC3 install
2. Login as root and run yum update
Yum returns the error:
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key
For more information contact your distribution or package provider.
Yum mentions to install the correct keys as up2date mentions when
running it for the first time.
To install the key, run the following as root:
rpm --import /usr/share/rhn/RPM-GPG-KEY
rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
If you run these imports (which up2date said), then yum update works fine.
Why is the message incorrect?
Yum runs on multiple distributions, up2date only runs on one.
Having a fedora-specific message in yum would be inappropriate.
This message is incorrect as it does not achieve the intended behavior
on Fedora. There's 2 possible routes to address:
1) fedora specific message pointing to the correct key(s) when running
2) A way such that "rpm --import public.gpg.key" installs the
necessary key(s) on Fedora
Either one of these changes would address this issue and the summary
has been adjusted thou in it's current behavior it's a bug.
That error message should be distribution dependant. That way it could
give useful instructions to user how to install the keys.
Perhaps the error message could be configurable in system-wide
yum-vendor.conf, which would possibly be provided by separate package?
I would split "yum" package to "yum" and "yum-fedora" (or something
Why is this being WONTFIX'd? The message displayed to the user is not
one that will work on Fedora. This should not require a large rework.
There are any number of ways to address this issue, be it a way to
have the message changed through system independences or having the
command presented to the user be one that takes the desired action of
importing the necessary keys. Can this issue please be reopened?
why not file this same bug against rpm, too? Rpm should have
vendor-differential code to tell it which rpm gpg keys to use.
The reason it was wontfix'd is b/c doing what you're describing is a
bit silly. If a distribution vendor wishes to apply a patch to fix
that string they can.
One of the options I am suggesting is for this vendor (Fedora) to
apply that patch to fix the string. That's what this bug is about.
This bug is not against the core yum product instead but against
Fedora's use of it. So the item is not silly in any sense and does
correct a valid problem of an invalid error / warning message in
Fedora's case (but agreed, it's not a bug against yum but IS a bug
against Fedora). Can this be re-opened? Would a patch to address the
issue in Fedora's implementation be accepted of presented?
This works well with yum in FC4 now.