When trying to update your Fedora using dnf and a failure like this appear:
sudo dnerror: db5 error(-30973) from dbenv;failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
Try the following:
cd /var/lib/rpm rm -f __* rpmdb --rebuilddb
Parsing through the html pretty print….
The correct command is: rpmdb –rebuilddb
And thanks for posting the tip. Brand new install of F27 going sideways when I tried to install my package list.
Turns out I corrupted the rpmdb by using dnf –exclude which appears to be a bug in dnf.
LikeLike