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.
So simple I found the solution.
rpm --rebuilddb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With