当前位置: 技术问答>linux和unix
为什么我安装yumex会出现下面的错误提示:?(我已经安装yum了阿)
来源: 互联网 发布时间:2016-05-15
本文导语: fuxiangxu@ubuntu:~$ yum install yumex rpm: To install rpm packages on Debian systems, use alien. See README.Debian. error: cannot open Packages index using db3 - No such file or directory (2) error: cannot open Packages database in /var/lib/rpm Traceba...
fuxiangxu@ubuntu:~$ yum install yumex
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
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 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 91, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/var/lib/python-support/python2.5/yum/__init__.py", line 170, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/var/lib/python-support/python2.5/yum/config.py", line 726, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/var/lib/python-support/python2.5/yum/config.py", line 793, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
另外 check-update
$yum update等等
也是出现一样的提示 。
fuxiangxu@ubuntu:~$ yum check-update
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
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 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 91, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/var/lib/python-support/python2.5/yum/__init__.py", line 170, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/var/lib/python-support/python2.5/yum/config.py", line 726, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/var/lib/python-support/python2.5/yum/config.py", line 793, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
fuxiangxu@ubuntu:~$
我 该怎办那 !~~
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
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 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 91, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/var/lib/python-support/python2.5/yum/__init__.py", line 170, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/var/lib/python-support/python2.5/yum/config.py", line 726, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/var/lib/python-support/python2.5/yum/config.py", line 793, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
另外 check-update
$yum update等等
也是出现一样的提示 。
fuxiangxu@ubuntu:~$ yum check-update
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
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 236, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 91, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 180, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
File "/var/lib/python-support/python2.5/yum/__init__.py", line 170, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/var/lib/python-support/python2.5/yum/config.py", line 726, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/var/lib/python-support/python2.5/yum/config.py", line 793, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
fuxiangxu@ubuntu:~$
我 该怎办那 !~~
|
ubuntu下面用apt-get....不是用yum...
yum是一个仅仅支持RPM包的升级....而UBUNTU的包管理不是用RPM....而是用DEB....
如果你想学习一下YUM...建议你用一下国产的REDFLAG...
yum是一个仅仅支持RPM包的升级....而UBUNTU的包管理不是用RPM....而是用DEB....
如果你想学习一下YUM...建议你用一下国产的REDFLAG...
|
ubuntu 上还用 yum 啊
自己找罪受
看样子是 yun 没安装对
自己找罪受
看样子是 yun 没安装对
|
ubuntu上用的不是rpm而是deb,所以就不用yum而是apt-get,你搞错了!yum是安装rpm的,这是redhat的文件形式。