db5 error(11) from dbenv->open: Resource temporarily unavailable when doing dnf install


If you are having an issue similar to this message

error: db5 error(11) from dbenv->open: Resource temporarily unavailable

The issue is likely due to a locked or corrupted database caused by an interrupted dnf process

Step 1: Remove RPM Database Locks:

# cd /var/lib/rpm
# rm -force __db.*

Step 2: Rebuild the Database

# rpm --rebuilddb

Step 3: Clear all cache data to remove inconsistencies

# dnf clean all

References:

https://unix.stackexchange.com/questions/634676/criticalyum-main

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.