7

I just killed a dnf process as it was not responding to ^Z

Now I have a corrupted Berkley database and no idea of how to rebuild it - colour me stoopid.

Any help would be gratefully received.

The output of any dnf search now is:

error: rpmdb: BDB0113 Thread/process 21154/140457937990976 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
Error: Error: rpmdb open failed

Thanks very much for your help.

ndim
  • 35,870
  • 12
  • 47
  • 57
Doug
  • 499
  • 4
  • 11

1 Answers1

19

So simple I found the solution.

rpm --rebuilddb
Eric
  • 1,138
  • 11
  • 24
Doug
  • 499
  • 4
  • 11