CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - General Support
  GPG Keys

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  2 Votes
  •  coolboarderguy
      coolboarderguy
GPG Keys
#1
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

ok, took the plunge, and allowed this new install to touch the net, and when running yum for the 1st time, I get the following,

[root@localhost cdrecorder]# yum update

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 download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key


Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and yum
will install it for you.

For more information contact your distribution or package provider.
[root@localhost cdrecorder]#


so, I ran rpm --import public.gpg.key but got the following,

[root@localhost cdrecorder]# rpm --import public.gpg.key
error: public.gpg.key: import read failed.
[root@localhost cdrecorder]#

What is needed here..?

EDIT: Ok, I found DAG and did the following,

[root@localhost cdrecorder]# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
warning: cannot get exclusive lock on /var/lib/rpm/Packages
[root@localhost cdrecorder]#
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/20 4:18
Create PDF from Post Print
Top
  •  K_Frye
      K_Frye
Re: GPG Keys
#2
Professional Board Member
Joined: 2005/7/13
From Canada
Posts: 428
Quote:

coolboarderguy wrote:
Hi All,

ok, took the plunge, and allowed this new install to touch the net, and when running yum for the 1st time, I get the following,

[root@localhost cdrecorder]# yum update

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 download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key


This is normal. You haven't imported the CentOS GPG key. Check out the CentOS faq for instructions:

http://www.centos.org/modules/smartfaq/faq.php?faqid=30

Quote:

[root@localhost cdrecorder]# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
warning: cannot get exclusive lock on /var/lib/rpm/Packages
[root@localhost cdrecorder]#


One of your sessions has locked up the RPM database. Either reboot or try to figure out the process that has the db locked.

eg:

/sbin/fuser -v /var/lib/rpm/Packages

or:

ps -aux | grep -i rpm
Posted on: 2005/8/20 4:59
Create PDF from Post Print
Top
  •  coolboarderguy
      coolboarderguy
Re: GPG Keys
#3
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

thanx for the quick response,

[root@localhost ~]# ps -aux | grep -i rpm
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
root 526 0.0 0.2 5324 680 pts/9 S+ 14:14 0:00 grep -i rpm

and

[root@localhost ~]# /sbin/fuser -v /var/lib/rpm/Packages

USER PID ACCESS COMMAND
/var/lib/rpm/Packages
root 3232 f.... system-config-n


sorry, not sure what to make of it.
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/20 5:18
Create PDF from Post Print
Top
  •  K_Frye
      K_Frye
Re: GPG Keys
#4
Professional Board Member
Joined: 2005/7/13
From Canada
Posts: 428
Quote:


[root@localhost ~]# /sbin/fuser -v /var/lib/rpm/Packages

USER PID ACCESS COMMAND
/var/lib/rpm/Packages
root 3232 f.... system-config-n

sorry, not sure what to make of it.


It's telling you that process 3232 (system-config-n) has a lock on the rpm database. Try killing the process or rebooting.
Posted on: 2005/8/20 18:14
Create PDF from Post Print
Top
  •  coolboarderguy
      coolboarderguy
Re: GPG Keys
#5
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

what exactly does system-config-n do..?
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/21 13:29
Create PDF from Post Print
Top
  •  coolboarderguy
      coolboarderguy
Re: GPG Keys
#6
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

ok, I get this when doing a yum update yum,

Dependencies Resolved
Transaction Listing:
Update: yum.noarch 0:2.2.1-1.centos4 - base
Total download size: 382 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): yum-2.2.1-1.centos 100% |=========================| 382 kB 00:04
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 443e1821
public key not available for yum-2.2.1-1.centos4.noarch.rpm
[root@status1 ~]# rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"
gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) -> 6b8d79e6-3f49313d
[root@status1 ~]#

What am I missing.?
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/22 5:27
Create PDF from Post Print
Top
  •  K_Frye
      K_Frye
Re: GPG Keys
#7
Professional Board Member
Joined: 2005/7/13
From Canada
Posts: 428
Quote:

coolboarderguy wrote:
Hi All,

ok, I get this when doing a yum update yum,

Dependencies Resolved
Transaction Listing:
Update: yum.noarch 0:2.2.1-1.centos4 - base
Total download size: 382 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): yum-2.2.1-1.centos 100% |=========================| 382 kB 00:04
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 443e1821
public key not available for yum-2.2.1-1.centos4.noarch.rpm
[root@status1 ~]# rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"
gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) -> 6b8d79e6-3f49313d
[root@status1 ~]#

What am I missing.?


Looks like you forgot to import Dag's GPG key. Follow the instructions on his page.
Posted on: 2005/8/22 5:52
Create PDF from Post Print
Top
  •  coolboarderguy
      coolboarderguy
Re: GPG Keys
#8
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

followed this,

B2. How do I install your GPG key/signature ?
Apt, Yum or up2date may require that a GPG key is installed. Please install the key as root before running any of these tools. As root, do the following:

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Or alternatively, download this GPG key and install it as root by doing:

rpm --import RPM-GPG-KEY.dag.txt
You can see a list of install keys by doing:

rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"
The fingerprint of my key is: 6b8d79e6-3f49313d

[root@status1 ~]# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

and at the bottom of my previous post, it shows the output of this,

[root@status1 ~]# rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) -> 6b8d79e6-3f49313d

Looks installed to me, no..?
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/22 5:58
Create PDF from Post Print
Top
  •  K_Frye
      K_Frye
Re: GPG Keys
#9
Professional Board Member
Joined: 2005/7/13
From Canada
Posts: 428
Quote:

coolboarderguy wrote:
Hi All,

followed this,

B2. How do I install your GPG key/signature ?
Apt, Yum or up2date may require that a GPG key is installed. Please install the key as root before running any of these tools. As root, do the following:

rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Or alternatively, download this GPG key and install it as root by doing:

rpm --import RPM-GPG-KEY.dag.txt
You can see a list of install keys by doing:

rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"
The fingerprint of my key is: 6b8d79e6-3f49313d

[root@status1 ~]# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

and at the bottom of my previous post, it shows the output of this,

[root@status1 ~]# rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) -> 6b8d79e6-3f49313d

Looks installed to me, no..?


Oops. I meant to type that you need to import the official CentOS GPG key.
Posted on: 2005/8/22 6:03
Create PDF from Post Print
Top
  •  coolboarderguy
      coolboarderguy
Re: GPG Keys
#10
Regular Board Member
Joined: 2005/6/3
From Tokyo
Posts: 51
Hi All,

ok, got it..thanx..
_________________
cheers.

coolboarderguy...
Posted on: 2005/8/22 6:11
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com