今天更新 centos 相关软件 报错如下:
☁ ~ <span class="wp_keywordlink_affiliate"><a href="https://www.168seo.cn/tag/yum" title="View all posts in yum" target="_blank">yum</a></span> update --skip-broken 错误:rpmdb: BDB0113 Thread/process 27258/139796198393664 failed: BDB1507 Thread died in Berkeley DB library 错误:db5 错误(-30973) 来自 dbenv->failchk:BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery 错误:无法使用 db5 - (-30973) 打开 Packages 索引 错误:无法从 /var/lib/rpm 打开软件包数据库 CRITICAL:<span class="wp_keywordlink_affiliate"><a href="https://www.168seo.cn/tag/yum" title="View all posts in yum" target="_blank">yum</a></span>.main: Error: rpmdb open failed
1
2
3
4
5
6
7
8
9
|
&
#x2601; ~ yum update --skip-broken
错误:
rpmdb
:
BDB0113
Thread
/
process
27258
/
139796198393664
failed
:
BDB1507
Thread
died
in
Berkeley
DB
library
错误:
db5
错误
(
-
30973
)
来自
dbenv
->
failchk:
BDB0087
DB_RUNRECOVERY
:
Fatal
error
,
run
database
recovery
错误:无法使用
db5
-
(
-
30973
)
打开
Packages
索引
错误:无法从
/
var
/
lib
/
rpm
打开软件包数据库
CRITICAL
:
yum
.
main
:
Error
:
rpmdb
open
failed
|
Error: rpmdb open failed 怎么解决呢?
mv /var/lib/rpm/__db* /tm yum clean all
1
2
3
|
mv
/
var
/
lib
/
rpm
/
__db
*
/
tm
yum
clean
all
|
用这两个命令就好了