Problem description
An error occurred while installing the software using yum
[root@localhost ~]# yum install pv -y
error: rpmdb: BDB0113 Thread/process 11498/140107732375616 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@localhost ~]#
Problem analysis
Yum was unable to open the package index using db5 – (- 30973) and the package database in/var/lib/rpm
according to the prompt yumrpmdb: bdb0113 thread/process 11498/140107732375616 failed, enter/var/lib/rpm to delete the corresponding DB file, and then rebuild yum
Solution:
1. View the/var/lib/RPM directory and delete it__DB * file
$ /var/lib/rpm
$ ls
Basenames __db.001 __db.003 Group Name Packages Requirename Sigmd5
Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername
$ rm -rf __db.*
2. Refactoring yum
$ rpm --rebuilddb
3. Clear Yum cache
$ yum clean all
4. Update the software chain of Yum
$ yum repolist
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] error: rpmdb: BDB0113 Thread/process
- [Solved] CentOS Use Yum to install dependency: error: rpmdb open failed
- yum Error: rpmdb open failed [How to Solve]
- [Solved] yum Error: Error: rpmdb open failed
- How to Solve Yum Error: db5 error(30973)
- [Solved] Linux – error: cannot open Packages database in /var/lib/rpm
- [Solved] E xx: xxxx:xx ERR thread 0x536753929472 setscheduler failed Operation not permitted
- yum: Error: Failed to download metadata for repo ‘aliyun-AppStream‘: Cannot download repomd.xml
- Ansible Use yum module to install rpm Error: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate v
- [Solved] yum Command Error: Error: Failed to download metadata for repo ‘appstream‘
- Yum source error: [errno 14] HTTP Error 404 – not found
- [Solved] OCI runtime create failed: runc create failed: unable to start container process:
- [Solved] Job for network.service failed because the control process exited with error code. See “systemctl st
- [Solved] Yum Install Software Error: Invalid configuration value: failovermethod=priority…
- [Solved] mongo Startup Error: ERROR: child process failed, exited with error number 1
- Resolving yum source-related issues: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
- Linux yum Error: All mirror URLs are not using ftp
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code