yum命令提示error: rpmdb: BDB0113 Thread/process,解决方法
最近在想用yum命令装docker时,使用yum install命令的时候,提示error: rpmdb: BDB0113 Thread/process,具体错误如下:# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4+ sh -c 'yum install -y -q yum-ut
·
最近在想用yum命令装docker时,使用yum install命令的时候,提示error: rpmdb: BDB0113 Thread/process,具体错误如下:
# Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
+ sh -c 'yum install -y -q yum-utils'
error: rpmdb: BDB0113 Thread/process 7689/140162110208064 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
解决方法如下:
mv /var/lib/rpm/__db.00* /tmp/&&yum clean all
-- 执行后会有如下提示:
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: epel extras os updates
Cleaning up list of fastest mirrors
接下来即可正常使用
更多推荐
已为社区贡献3条内容
所有评论(0)