Problem error: failed to open rpmdb. db5 error(30973)
error: rpmdb: BDB0113 Thread/process 8442/140713489532992 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:
Error: rpmdb open failed
[root@VM-0-6-centos ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
error: rpmdb: BDB0113 Thread/process 8442/140713489532992 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.cli:Yum Error: Error: rpmdb open failed
The reason why rpm is damaged: the database needs to be rebuilt.
Solution: clear the original link through the command and re-establish it.
[root@localhost ~]# rm -rf /var/lib/rpm/_db* #Delete the original
[root@localhost ~]# rpm --rebuilddb # New
[root@localhost ~]# yum clean all # Clear all yum caches
It can be used normally at present
Read More:
- [Solved] yum Install rpmdb Error: error: rpmdb: BDB0113 failed: BDB1507 Thread died in Berkeley DB library
- [Solved] yum error: rpmdb: BDB0113 Thread/process
- [Solved] YUM Error: error: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- [Solved] yum Error: Error: rpmdb open failed
- yum Error: rpmdb open failed [How to Solve]
- How to Solve Ubuntu “Failed to fetch” Error
- How to Solve Error: Driver “kvm2“ not found
- How to Solve NPM Error: listen EADDRINUSE 127.0.0.1:8080
- How to Solve Error: Address already in use
- How to Solve gtid master-slave replication connecting Issue
- How to Solve insufficent privileges error: Ora-01031
- How to Solve Roscore Run error [Install ROS]
- Yum source error: [errno 14] HTTP Error 404 – not found
- How to Solve labelme Install Error in Ubuntu
- How to Solve Git Filename too long Error
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- Linux: How to Solve vim ~/.bashrc Execute Error
- How to Solve Docker delete container image error: Error response from daemon: conflict: unable to delete 7cc1942f1ed5 (must be forced)
- Linux: How to Solve sudo operate Error