LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-28-2008, 02:25 AM   #1
chinmayee
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
installation problem of rpm packages


Hi

I am using a CENTOS 4 OS, during the installation of rpm package I am getting this error,

rpm -i perl-DBI-1.40-8.i386.rpm
warning: perl-DBI-1.40-8.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821

I have also logged in as root!!

I am not able to proceed further even using the "gpgkey" option

rpm --import public.gpg.key
error: public.gpg.key: import read failed.

kindly help me out
 
Old 01-28-2008, 02:58 AM   #2
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 170

Rep: Reputation: 21
I dont use Cent OS, but in Suse if a package was not verified you could use the --force option.
Use it at your own risk, syntax is:

rpm -ivh --force package.rpm
 
Old 01-28-2008, 04:50 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Thats just a warning and it does not necessarily mean that the package was not installed. What is the output of doing
Code:
$rpm -qa | grep -i perl-BDI
 
Old 01-29-2008, 01:06 AM   #4
chinmayee
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
@ reddazz

no output for the executed command

$rpm -qa | grep -i perl-BDI

can anyone explain me about the "gpgkey"??
 
Old 01-29-2008, 01:11 AM   #5
chinmayee
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
@ hal8000b

even now the warning message is d same!!

rpm -ivh --force perl-DBI-1.40-8.i386.rpm
warning: perl-DBI-1.40-8.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821

This should be something related to the gpgkey..
plz help me out
 
Old 01-29-2008, 02:21 AM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You usually need to import the specific key from the source of the rpm.
 
Old 01-29-2008, 04:15 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try the following
Code:
#yum install perl-DBI
 
Old 01-29-2008, 04:51 AM   #8
chinmayee
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
@ lazlow & reddazz

How do i import the key??
i tried using the following command but got the error,

rpm --import public.gpg.key
error: public.gpg.key: import read failed.
 
Old 01-29-2008, 05:40 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
Where the instructions read "rpm --import public.gpg.key" you shouldn't take it literally unless you saved the GPG key as a file named "public.gpg.key". Try 'rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4' as root (not use --nosignature).
 
Old 01-29-2008, 10:01 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by chinmayee View Post
@ lazlow & reddazz

How do i import the key??
i tried using the following command but got the error,

rpm --import public.gpg.key
error: public.gpg.key: import read failed.
Did you try installing the package using yum?
 
Old 01-29-2008, 12:41 PM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Even if you use yum (which would be better) you will either have to use the import key or set it not to check the key (gpgcheck=1 check key, gpgcheck=0 no key, in the repo file).

If you got the rpm from centos Unspawn should be right.
 
Old 01-29-2008, 02:36 PM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by lazlow View Post
Even if you use yum (which would be better) you will either have to use the import key or set it not to check the key (gpgcheck=1 check key, gpgcheck=0 no key, in the repo file).

If you got the rpm from centos Unspawn should be right.
I am pretty sure that you do not have to manually import any keys if you are using yum to install packages from the official CentOS repos. I don't remember having to do this in CentOS 4, but then again I could be wrong.
 
Old 01-29-2008, 02:52 PM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
It depends on how you installed yum support for that repo. If you use a rpm then it was contained within the rpm and you just made a one time exception.
 
Old 01-29-2008, 04:10 PM   #14
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I've looked at the centos-release rpm and can confirm that it installs the gpg keys as well as setup the official repos during initial setup. This means that installing a packge using yum should not pester the user with regards to CentOS gpg keys if the packages are from their official repos. If this happens, the user can simply do
Code:
#rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY
 
Old 01-30-2008, 12:56 AM   #15
chinmayee
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
I've looked at the centos-release rpm and can confirm that it installs the gpg keys as well as setup the official repos during initial setup. This means that installing a packge using yum should not pester the user with regards to CentOS gpg keys if the packages are from their official repos. If this happens, the user can simply do
Code:
#rpm --import /usr/share/doc/centos-release-4/RPM-GPG-KEY

Thanks a lot!!
perl-DBI package is installed!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installation problem of rpm packages chinmayee Linux - Distributions 1 01-28-2008 04:55 AM
installation problem of rpm packages chinmayee Linux - General 1 01-28-2008 04:54 AM
problem uninstalling rpm packages..... sunnysharma Linux - Newbie 5 02-20-2005 03:35 PM
mplayer rpm packages problem dark_light Linux - General 1 03-31-2003 01:43 PM
installation of rpm packages saavik Linux - Software 3 01-16-2003 10:49 AM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration