RPM Import: key 1 import failed

Issues related to applications and software problems
Post Reply
Karnik
Posts: 2
Joined: 2011/08/08 17:28:14

RPM Import: key 1 import failed

Post by Karnik » 2011/08/08 18:07:35

Hello,

I recently installed CentOS 6 and I'm experiencing problems with installing RPMforge.

I follow the instructions as described at: [url=http://wiki.centos.org/AdditionalResources/Repositories/RPMForge]Installing RPMforge[/url]


When I do:
[code]rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt[/code]

I get this error:
[code]error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.[/code]


Even when I do:
[code]$ wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt
[/code]

I get the same error as result.

Probably this easy to solve but as I'm not really experienced with Linux, I cant find a solution for this problem.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: RPM Import: key 1 import failed

Post by TrevorH » 2011/08/08 18:32:35

[quote]
$ wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
[/quote]

That prompt shows you are not root when you did this. You need to be.

Karnik
Posts: 2
Joined: 2011/08/08 17:28:14

Re: RPM Import: key 1 import failed

Post by Karnik » 2011/08/08 18:45:01

I have executed the commands as root.

[code]root@linux Downloads]# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.[/code]





[code][root@linux Downloads]# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
--2011-08-08 20:37:39--
http://apt.sw.be/RPM-GPG-KEY.dag.txt Resolving apt.sw.be...
193.1.193.67 Connecting to apt.sw.be|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK Length: 1672 (1.6K) [text/plain]
Saving to: “RPM-GPG-KEY.dag.txt” 100%[======================================>] 1,672 --.-K/s in 0s
2011-08-08 20:37:44 (6.09 MB/s) - “RPM-GPG-KEY.dag.txt” saved [1672/1672]
[root@linux Downloads]# rpm --import RPM-GPG-KEY.dag.txt error: RPM-GPG-KEY.dag.txt: key 1 import failed.[/code]

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: RPM Import: key 1 import failed

Post by TrevorH » 2011/08/08 23:22:24

I do not think you followed these instructions...

http://wiki.centos.org/TipsAndTricks/BecomingRoot

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

RPM Import: key 1 import failed

Post by pschaff » 2011/08/10 21:30:47

I can replicate the problem as root. Same error with the URL or a local file. The GPG key is already installed as I have rpmforge-release installed. If I first remove the key (rpm -e gpg-pubkey-6b8d79e6-3f49313d) I can then install it again without error. This seems to be a bug. It at least needs to be documented, and/or put out a more informative error message.

I suspect you already have the GPG key installed. Run[code]rpm -q --qf "%{NAME}-%{VERSION}-%{RELEASE} \n %{SUMMARY} \n" gpg-pubkey[/code]
See if you get an output including[code]
gpg-pubkey-6b8d79e6-3f49313d
gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) [/code]

Edit: Now at a [url=http://wiki.centos.org/FAQ/CentOS6#head-dcdb0c2fa3011ba53f6d24a139d003acc8f1d5a5]FAQ[/url] near you. :-)

Post Reply