Hello, this started few days ago for the first time for as it seems for no reason.
[root@z ~]# yum update
error: rpmdb: BDB0113 Thread/process 2334084/140089513700224 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
So I did this:
mkdir /var/lib/rpm/backup
cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/
rm -f /var/lib/rpm/__db.[0-9][0-9]*
rpm --quiet -qa
rpm --rebuilddb
yum clean all
But when issuing the rpm--rebuilddb this error shows up (dont know if it matters or not)
error: could not delete old database at /var/lib/rpmold.196128
Ok, I then did 'yum clean all' and yum update works. Until the next day the same error starts to happen again and I need to rebuild the rpmdb.
Why is this happening and how can I fix this permanently? :/
Thank you.
[root@z ~]# yum update
error: rpmdb: BDB0113 Thread/process 2334084/140089513700224 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
So I did this:
mkdir /var/lib/rpm/backup
cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/
rm -f /var/lib/rpm/__db.[0-9][0-9]*
rpm --quiet -qa
rpm --rebuilddb
yum clean all
But when issuing the rpm--rebuilddb this error shows up (dont know if it matters or not)
error: could not delete old database at /var/lib/rpmold.196128
Ok, I then did 'yum clean all' and yum update works. Until the next day the same error starts to happen again and I need to rebuild the rpmdb.
Why is this happening and how can I fix this permanently? :/
Thank you.