linux服务器无法yum,linux服务器无法yum的问题rpmdb: Lock table is out of available&nbsp...

[root@cache1 ~]# yum install test

rpmdb:

Lock table is out of available locker entries

rpmdb:

Unknown locker ID: 2058

error: db4

error(22) from db->close: Invalid argument

error:

cannot open Packages index using db3 - Cannot allocate memory

(12)

error:

cannot open Packages database in /var/lib/rpm

Traceback

(most recent call last):

File "/usr/bin/yum", line 29, in

?

yummain.main(sys.argv[1:])

File "/usr/share/yum-cli/yummain.py",

line 85, in main

base.getOptionsConfig(args)

File "/usr/share/yum-cli/cli.py", line

163, in getOptionsConfig

disabled_plugins=self.optparser._splitArg(opts.disableplugins))

File

"/usr/lib/python2.4/site-packages/yum/__init__.py", line 164, in

_getConfig

self._conf = config.readMainConfig(startupconf)

File

"/usr/lib/python2.4/site-packages/yum/config.py", line 685, in

readMainConfig

yumvars['releasever'] = _getsysver(startupconf.installroot,

startupconf.distroverpkg)

File

"/usr/lib/python2.4/site-packages/yum/config.py", line 752, in

_getsysver

idx

= ts.dbMatch('provides', distroverpkg)

TypeError:

rpmdb open failed

[root@cache1 ~]# tar cvzf rpmdb-backup.tar.gz

/var/lib/rpm

tar:

Removing leading `/' from member names

/var/lib/rpm/

/var/lib/rpm/Name

/var/lib/rpm/Installtid

/var/lib/rpm/Pubkeys

/var/lib/rpm/Sha1header

/var/lib/rpm/Filemd5s

/var/lib/rpm/Dirnames

/var/lib/rpm/Group

/var/lib/rpm/__db.003

/var/lib/rpm/Sigmd5

/var/lib/rpm/Providename

/var/lib/rpm/Basenames

/var/lib/rpm/__db.001

/var/lib/rpm/Packages

/var/lib/rpm/Requirename

/var/lib/rpm/Requireversion

/var/lib/rpm/Provideversion

/var/lib/rpm/Conflictname

/var/lib/rpm/__db.002

/var/lib/rpm/Triggername

[root@cache1 ~]# rm -f /var/lib/rpm/__db.00*

[root@cache1 ~]# rpm –rebuilddb

[root@cache1 ~]# yum install test

base 100% |=========================| 1.1

kB 00:00

updates 100% |=========================| 1.9

kB 00:00

primary.sqlite.bz2 55%

|============= | 512 kB 00:01 ETA

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值