LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2004, 10:26 AM   #1
jaan kaer
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Debian testing
Posts: 69

Rep: Reputation: 15
how do i install a gpg key?


while trying to "yum update" it gives me this error message?

Code:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID a109b1ec
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/livna-stable/packages/glut-3.7-12.lvn.1.1.i386.rpm
Error: You may want to run yum clean or remove the file:
 /var/cache/yum/livna-stable/packages/glut-3.7-12.lvn.1.1.i386.rpm
Error: You may also check that you have the correct GPG keys installed
how do i install a gpg key,
"rm /var/cache/yum/livna-stable/packages/glut-3.7-12.lvn.1.1.i386.rpm" did'nt make any change in this error.
 
Old 01-13-2004, 11:18 AM   #2
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
Do you have the key to install?
 
Old 01-13-2004, 11:30 AM   #3
jaan kaer
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 15
err, how do i know that?
 
Old 01-13-2004, 11:47 AM   #4
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
Read this:

http://fedora.redhat.com/about/security/


To import a key to gpg you can use gpg --import

good luck
 
Old 01-14-2004, 07:49 AM   #5
jaan kaer
Member
 
Registered: Nov 2003
Location: Estonia
Distribution: Debian testing
Posts: 69

Original Poster
Rep: Reputation: 15
thanks, but how do i install it anyway to a certain 3-rd party server, it only tells me, what gpg is
 
Old 01-16-2004, 01:01 PM   #6
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
There's also a link to the gpg key.

http://fedora.redhat.com/about/security/1CDDBCA9.txt

To "install" this to your gpg you must import it. Assuming you have gpg installed, you can import the key by copying to a text file. Say fedora.key

To import the key run

gpg --import fedora.key

You can check all the keys imported typing

gpg --list-keys
 
Old 02-20-2004, 04:36 AM   #7
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
ran into similar problem

Hi there,

When I tried running yum update I ran into the following error:

warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 8df56d05
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/fedora-stable/packages/perl-DateManip-5.42-0.fdr.2.a.1.noarch.rpm
Error: You may want to run yum clean or remove the file:
/var/cache/yum/fedora-stable/packages/perl-DateManip-5.42-0.fdr.2.a.1.noarch.rpm
Error: You may also check that you have the correct GPG keys installed

I serched for and read the posts above.
Seeing as it came from Fedora, I went to the following webpage to get the gpg key:

http://fedora.redhat.com/about/security/1CDDBCA9.txt

I copied the entirety of this page and plugged it into emacs, and saved it as #fedora.key# within /root. I then ran the following (with output):

[root@dhcp58 root]# gpg --import \#fedora.key#
gpg: /root/.gnupg: directory created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 1CDDBCA9: public key "Fedora Project automated build signing key (2003) <rawhide@redhat.com>" imported
gpg: Total number processed: 1
gpg: imported: 1

I checked which keys were installed with the following:

[root@dhcp58 packages]# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub 1024D/1CDDBCA9 2003-10-27 Fedora Project automated build signing key (2003) <rawhide@redhat.com>


When I ran yum update again, I got the same error. I even tried to install the rpm manually as follows:

[root@dhcp58 root]# cd /var/cache/yum/fedora-stable/packages/
[root@dhcp58 packages]# ls
perl-DateManip-5.42-0.fdr.2.a.1.noarch.rpm
[root@dhcp58 packages]# rpm -ivh perl-DateManip-5.42-0.fdr.2.a.1.noarch.rpm
warning: perl-DateManip-5.42-0.fdr.2.a.1.noarch.rpm: V3 DSA signature: NOKEY, key ID 8df56d05
Preparing... ########################################### [100%]
file /usr/share/man/man3/Date::Manip.3pm.gz from install of perl-DateManip-5.42-0.fdr.2.a.1 conflicts with file from package perl-DateManip-5.40-30

Thanks for any help you can offer.
 
Old 02-20-2004, 05:09 AM   #8
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
okay...from looking at other threads here, I've figure out that I should only paste from the "starts here" line onward....and I installed a bunch of them....

[root@dhcp58 /]# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub 1024D/1CDDBCA9 2003-10-27 Fedora Project automated build signing key (2003) <rawhide@redhat.com>

pub 1024D/8DF56D05 2003-03-27 Fedora Linux (RPMS) <security@fedora.us>
sub 2048g/6E208B8B 2003-03-27

pub 1024D/A109B1EC 2003-09-21 Livna.org rpms <rpm-key@livna.org>
sub 1024g/0351F130 2003-09-21


The problem persists.

I tried to import from the website directly, without success:

[root@dhcp58 /]# rpm --import http://www.fedora.us/FEDORA-GPG-KEY
Segmentation fault

I'm puzzled because it even looks as though I have the needed key mentioned in the yum error, key ID 8df56d05, listed in my key list.

Again, thanks for your help
 
Old 02-23-2004, 10:12 PM   #9
tylerb
LQ Newbie
 
Registered: Feb 2004
Location: USA
Distribution: Red Hat 9
Posts: 22

Rep: Reputation: 15
im having the same problem with redhat 9 and xine. i installed the key the website gave me put i still cant even install the package from command line. i know its a long shot but im going to download kpackage and try it in case im missing an option when i try to do it from command line. ill let you know what happens
 
Old 07-31-2004, 02:06 PM   #10
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
GPG Keys

Well, until they make it easier to install the GPGkeys, you can disable GPG key checking by doing a find and replace in the /etc/yum.conf file,
Replace "gpgcheck=1" with "gpgcheck=0" throughout the file.

One thing that would make GPG manageable is to put a link to the key with each site listed in the yum.conf file, and then have a command line option to install them ( e..g yum --getgpgkeys ) that handles the downloading and installing of the keys. in one stroke.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM
what is gpg-key salahuddin_66 Slackware 3 05-18-2004 03:10 AM
Problems with GPG Key? Duplicator Fedora - Installation 0 02-07-2004 07:27 AM
how to verifyfiles w/ gpg key ergo_sum Linux - Newbie 0 02-05-2004 05:22 AM
if they got my gpg private key...... qwijibow Linux - Security 1 10-21-2003 12:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration