Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message displayed on running a created rpm

Status
Not open for further replies.

ssuvarna

IS-IT--Management
May 31, 2001
3
US
Hi,

I am getting the following errors when I try to install/uninstall a rpm I have created:

error: cannot get shared lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)

P.S. I have tried installing with/without root perms. There are no corrupt __db* files in /var/lib/rpm directory.

Please help.

Thanks and Regards,
Swati

 
Yes without any problems (or error messages as above). Its just with this rpm I created that I see these errors.

Thanks and Regards,
Swati
 
I managed to find out why I was getting this problem and thought I should put it up on this thread as well. I was using rpm query i.e. &quot;rpm -q <package>&quot; within my spec file (used for building the rpm) to find if some package is installed and performing certain actions based on the result. Removing the rpm query resolved the error.

This means that I cant use rpmquery inside spec files -- is that correct? If yes, how do I achieve the above i.e. perform certain actions, based on results of rpmquery? Anyone has any ideas on this?

Thanks and Regards,
Swati

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top