Skip to content

Instantly share code, notes, and snippets.

@raphaunix
Created November 7, 2017 10:45
Show Gist options
  • Save raphaunix/3d6fb7cec824e34661243712d8c17a25 to your computer and use it in GitHub Desktop.
Save raphaunix/3d6fb7cec824e34661243712d8c17a25 to your computer and use it in GitHub Desktop.
centos
yum update
error: rpmdb: BDB0113 Thread/process 22428/140499342686208 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
CRITICAL:yum.main:
[SOLVED]
sudo rm -f /var/lib/rpm/__db* && db_verify /var/lib/rpm/Packages && rpm --rebuilddb && yum clean all && yum update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment