clocker1996
02-16-2002, 06:38 PM
When i try to rpm -e a rpm i get this: Anyone know whats wrong? or how i can fix it?
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open /var/lib/rpm/packages.rpm
Yes, i am root.
serve-you
02-16-2002, 07:31 PM
That usually means that something else has a lock on the rpm db. This happens if you have a gui package manger open, or similar. Make sure that your current session is the only one accessing the rpm db.
-Dan
clocker1996
02-16-2002, 09:19 PM
i am sure there are other ways to solve this
and no.... i am not holding anything up
serve-you
02-16-2002, 09:25 PM
Originally posted by clocker1996
i am sure there are other ways to solve this
and no.... i am not holding anything up
Other than killing the offending process? No.
-Dan
priyadi
02-17-2002, 06:10 AM
Try this to get the information of the process that has lock on the rpm database. You should kill it afterwards.
lsof | grep /var/lib/rpm/packages.rpm