以下是提示的错误代码:
[root@luqiwen Packages]# rpm -ivh lua-5.1.4-4.1.el6.i686.rpm
rpmdb: /var/lib/rpm/Packages: unexpected file type or format
error: cannot open Packages index using db3 - 无效的参数 (22)
error: cannot open Packages database in /var/lib/rpm
warning: lua-5.1.4-4.1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
rpmdb: /var/lib/rpm/Packages: unexpected file type or format
error: cannot open Packages database in /var/lib/rpm
[root@luqiwen Packages]# yum -y install lua-5.1.4-4.1.el6.i686.rpm
rpmdb: /var/lib/rpm/Packages: unexpected file type or format
error: cannot open Packages index using db3 - 无效的参数 (22)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 254, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 88, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 192, in getOptionsConfig
self.conf
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 778, in
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 256, in _getConfig
startupconf = config.readStartupConfig(fn, root)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 835, in readStartupConfig
startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 968, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
_rpm.error: rpmdb open failed
[root@luqiwen Packages]#
请大神帮我看看怎么回事,怎么解决?
pl_014 于 2013-11-06 22:16:34发表:
想法修复一下包管理器的数据库吧。
找点钱过日子 于 2013-11-05 19:40:20发表:
给个下载 链接吧?大神 !! 我找了好久都没有找到下载链接,找到也不能安装,从源安装要用什么上命令安装呢?我的系统里 rpm yum 命令都不能用了
相思爱文 于 2013-11-05 06:54:57发表:
安装程序,从源安装,会很方便。最好不要下载独立的安装包。
进行重要更新前,先备份系统。服务器要求运行稳定,有些最新版本的软件是不能安装的。
个人建议使用fedora较好。
于 2013-11-04 12:29:39发表:
难道这里没有大神吗?求大神帮我解决