In RHEL4 rpm 4.3.3 it was FHS compliant : try rm -f /var/lock/rpm/transaction
(Aside) it is possible to set a rpm macros for disabling this behaviour.
Best Regards
2008/5/13 sunhux G <sunhux@xxxxxxxxx>:
Hi,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.htmlthose cryptic characters starting from the lines (inclusive)-----BEGIN PGP PUBLIC KEY BLOCK-----. . . . .-----END PGP PUBLIC KEY BLOCK-----As I saved this file in Windows to a thumb drive & use "cp " tocopy 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 & theprotection 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 somethingelse & make another copy of Packages :mv /var/lib/rpm/Packages /var/lib/rpm/Packages_2cp -p /var/lib/rpm/Packages_2 /var/lib/rpm/PackagesWould this help? Appreciate any suggestions.ThanksU
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list