[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Linux experts,help please!



On Sunday 09 March 2003 14:30, D X Zhang wrote:
> Hi,
> The version of my linux is Red Hat Linux 8.0,I have installed on my
> computer .Now,i want to install the source codes in my system,and there are
> some problems.
> I typed the following command in the system terminal
> rpm -ivh tcltk-8.3.3-74.src.rpm
> and the system displayed
> warning: tcltk-8.3.3-74.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
> error: cannot write to %sourcedir /usr/src/redhat/SOURCES
> So I thought this is because I had not got a suitable key,then I tried to
> check the keys installed for RPM verification by excuting the command
> rpm -qa gpg-pubkey*
> this time nothig was given out !! :-(
> I guess there must be something wrong with the key,and attempt to import a
> key by typing
> rpm --import /usr/share/rhn/RPM-GPG-KEY
> This time,very brilliant,the crappy system tell me for errors
> error: cannot get exclusive lock on /var/lib/rpm/Packages
> error: cannot open Packages index using db3 - Operation not permitted (1)
> error: cannot open Packages database in /var/lib/rpm
> error: /usr/share/rhn/RPM-GPG-KEY: import failed.
> Ate this stage, I really have no strategy at all!
> Experts,please help me!
> Thanks very much! :-)
>  Wenly

Hi

Have you tried getting the public key for redhat from:

http://www.redhat.com/solutions/security/news/publickey/index/

Copy and paste the key from the web page into a text file then import with the 
command:  gpg --import <filename>.txt

Make sure you are "root" user in the console to do this so that the key is 
imported into the keyring of "root"

Also to verify a RPM package for Red Hat Linux, run the command as "root": 
rpm --checksig -v <filename>.rpm

I am not a redhat user (I use SUSE) but I hope this helps.

James

-- 
james@sheflug.co.uk

Sheffield Linux User's Group -
http://www.sheflug.co.uk

GNU the choice of a complete generation.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.