-   Linux - Software (
-   -   issue importing RH GPG public key (

linux-singapore 12-16-2003 09:29 PM

issue importing RH GPG public key

I'm installing the SAMBA Web Admin Tool ( SWAT ) off the Red Hat installation CDs but the install process doesn't like the fact that I don't have the Red Hat Public Key on my machine. I try to issue the command

#rpm -import /usr/share/rhn/RPM-GPG-KEY

but then the system just sits there and never comes back to me. I have to do a Ctrl-C to get back to a prompt.

Any ideas if I'm doing something wrong ?


ugob 12-17-2003 01:26 AM

do a ls -l on the file...

linux-singapore 12-17-2003 02:11 AM

import on second machine
I moved to a second Red Hat install running on a vmware virtual machine on different hardware ( same RH version and same install media used). No problems importing the public key this time. Must be something iffy with my
first machine. However I now get an error as below

rpm.error: public key not available

Here are my steps if anyone can shed further light:

[root@localhost root]# rpm --import /usr/share/rhn/RPM-GPG-KEY

[root@localhost root]# rpm -q 'gpg-pubkey-*'

[root@localhost root]# redhat-install-packages \

error: cannot open Packages database in /var/lib/rpm
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID db42a60e
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/", line 252, in ?
File "/usr/share/redhat-config-packages/", line 216, in run
self.do_initial_setup ()
File "/usr/share/redhat-config-packages/", line 145, in
h = ts.hdrFromFdno(fd)
rpm.error: public key not available

ugob 12-17-2003 09:18 AM

Have you done a little research on your own before posting? I found your problem (and probably your solution) in 5 secs...

linux-singapore 12-18-2003 01:10 AM

rpm public key not found.
Dear Mr/Miss/Mrs ugob.

Whoever you are you have a great talent for providing absolutely useless information.

Do both of us a favour and don't waste my time reading your silly replies. Only reply to this thread if you have some constructive advice about my issue. No vague generalisations please!

bye bye now.

ugob 12-18-2003 01:32 AM

Did you check this:

First result.

linux-singapore 12-18-2003 01:39 AM

rpm error google results
Yes I've tried Google before posting anything to this forum and I get many hits on rpm.error public key ie lots of people having the same issue but no suggested fixes. If you can see something that I'm not seeing then do let me now.

ugob 12-18-2003 01:51 AM

please run

rpm -q redhat-install-packages

and post the output please

All times are GMT -5. The time now is 09:24 PM.