How To Rectify Transaction Lock /var/lib/rpm in Linux
- Last Updated On: December 18, 2013
- By: Scriptcrunch Editorial
1. Remove the db files and rebuild those files again using the following commnds.
Sudo rm -f /var/lib/rpm/__db.00*
Sudo rpm --rebuilddb
Once you executed the above commands all the locks will be freed and you can continue with your instllation.
2. You can also remove the locks by kill all the existing process which is holding the lock on the resource using the following commands.
Sudo ps –ef
The above command will show all the existing process.
Find the process id and kill the ,process using the following command
Kill –9 <process id>
Ps aux | grep yum
Kill -9 process-id
Scriptcrunch Editorial
Other Interesting Blogs
[80% OFF] Linux Foundation Coupon for November 2024
Hi Techies, I wanted to let you know about a pretty sweet deal with the Linux Foundation Coupon that is running now.
[40% OFF] Linux Foundation LFCA, LFCS & LFCT Exam Voucher Codes
Linux Foundation has announced up to a $284 discount on its Linux certification programs Linux Foundation Certified IT Associate (LFCA) and Linux
CKA Certification Study Guide (Certified Kubernetes Administrator)
This comprehensive CKA certification exam study guide covers all the important aspects of the Certified Kubernetes Administrator exam and useful resources. Passing