Remove /var/lib/rpm/__db* files to avoid stale locks:
cd /var/lib/rpm
rm -rf __db*
Rebuild RPM database
# rpm --rebuilddb
# rpmdb_verify Packages
If you are still getting errors, then try your luck with following commands:
# mv Packages Packages-BAKUP
# db_dump Packages-BAKUP | db_load Packages
# rpm -qa
# rpm --rebuilddb
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment