1。 rpm hang住后,手动kill掉,报 Berkeley DB错
错误如下
[root@localhost ywywyang]# rpm -ivh python-deltarpm-3.6-0.6.20110223git.fc16.ppc64.rpm
error: rpmdb: Thread/process 5627/17590685196160 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 - (-30974)
error: cannot open Packages database in /var/lib/rpm
warning: python-deltarpm-3.6-0.6.20110223git.fc16.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID 10d90a9e: NOKEY
error: rpmdb: Thread/process 5627/17590685196160 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
恢复办法:
cd /var/lib/rpm
rm __db*
rpmdb --rebuilddb
2. 建立local repo
#yum install createrepo
把rpm放在/mnt/fc_local_repo下面。
#createrepo /mnt/fc_local_repo/
好了可以装了, ,very useful
yum install xxx