Ask Your Question

Rpmdb not working

asked 2018-12-22 00:38:42 -0500

Hi how to resolve with corrupted rpmdb sometimes it shows error.

edit retag flag offensive close merge delete


Please let me know if you have the rpmdb error code for a more detailed answer.

simmon gravatar imagesimmon ( 2018-12-22 01:19:13 -0500 )edit

The following procedure i followed in the past but it wont worked and randomly it says rpmdb error.

duckfern gravatar imageduckfern ( 2018-12-22 01:54:49 -0500 )edit

If there is a problem with the installation that is causing the conflict, then removing the conflicting package solves the installation problem.When you look at the rpmdb issues you posted earlier, there seems to be a potential bug in certain problems. written by simmon

simmon gravatar imagesimmon ( 2018-12-22 02:31:51 -0500 )edit

could you show error....Please let me know the symptom of the problem and it will help you a lot.

simmon gravatar imagesimmon ( 2018-12-22 02:49:41 -0500 )edit

while checking grouplist and repolist in terminal it shows following

warning rpmdb: BDB2069 freeing read locks 
for locker 0x5:2529/2065693457014834

duckfern gravatar imageduckfern ( 2018-12-22 03:20:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-12-22 01:14:51 -0500

updated 2018-12-22 03:03:30 -0500

A. Run the following command to recover rpmdb.

# rpm --rebuilddb -v
# dnf clean all
# reboot

You can check rpmdb in the following way.

 # db_verify /var/lib/rpm/Packages
 BDB5105 Verification of /var/lib/rpm/Packages succeeded.

B. initialize rpmdb

  • Please backup rpm database

rpmdb backup

 # cd /var/lib/rpm
 # mv __db* /tmp


 # yum clean all
 # dnf update

Backup rpmdb is located in / tmp, so remove it if it shows normal behavior.

C. Just check..hard disk usages. I ran into the rpmdb problem and found that there was not enough storage space. when you are out of space, you may see such symptoms, which can be solved naturally by adding more storage space or removing unnecessary data.

written by simmon

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-12-22 00:38:42 -0500

Seen: 60 times

Last updated: Dec 22 '18