FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > RPM Package Manager

LinkBack Thread Tools
Old 05-13-2008, 09:48 AM
"sunhux G"
Default rpm gives warning: can't get exclusive lock on /var/lib/rpm/Packages

As I got a message on our Redhat Enterprise 4.5, :
Your GPG keyring does not contain public key ...
I copy & paste from https://www.redhat.com/security/team/key.html
those cryptic characters starting from the lines (inclusive)
*** -----BEGIN PGP*PUBLIC KEY BLOCK-----****
******** . . . . .
As I saved this file in Windows to a thumb drive & use "cp " to
copy it, there's a lot of ^M characters in this file which I then do
"dos2unix /media/usbdisk/saved_file.txt"
Then copy the converted saved_file.txt to /usr/share/doc/rpm-4.5
& issue using root account :
**rpm --import /usr/share/doc/rpm-4.5/saved_file.txt"
but got the error :
* "warning: can't get exclusive lock on /var/lib/rpm/Packages"
What's the cause of the above error?* I'm using root & the
protection of the saved_file.txt is 755.
I read somewhere that /var/lib/rpm/Packages* could be locked,
so what can I do?* I thought of renaming Packages to something
else & make another copy of Packages :
* mv /var/lib/rpm/Packages* /var/lib/rpm/Packages_2
* cp -p /var/lib/rpm/Packages_2**/var/lib/rpm/Packages
Would this help?* Appreciate any suggestions.
Rpm-list mailing list

Thread Tools

All times are GMT. The time now is 10:30 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org