解决yum安装卡在Running transaction test卡很久
![admin](https://hdzys.com/zb_users/avatar/0.png)
安装yum install libXcomposite的时候,一直卡在Running transaction test大概过了十多分钟,ctrl+c也取消不掉,找到进程id直接kill也没动静,必须用kill -9。
然后想安装strace来跟踪一下进程,发现yum竟然坏了。
error: rpmdb: BDB0113 Thread/process 24858/140220656338176 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:
执行以下命令解决这个损坏
[root@localhost ~]# rm -f /var/lib/rpm/__db*
[root@localhost ~]# rpm --rebuilddb
strace安装成功后,想着再去安装
libXcomposite来复现Running transaction test卡住的问题。
只不过次直接安装成功了。
推测rm -f /var/lib/rpm/__db*和rpm --rebuilddb解决了Running transaction test卡住的问题。
本文《解决yum安装卡在Running transaction test卡很久》jingyan2/92.html
与《解决yum安装卡在Running transaction test卡很久》