linux下rpm安装报错error: Failed dependencies: python-libs(x86-64) = 2.6.6-64.el6 is needed by python-2.6

时间:2022-02-28 13:04:58
[root@localhost ~]# rpm -ivh python-2.6.6-64.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm 
error: Failed dependencies:

python-libs(x86-64) = 2.6.6-64.el6 is needed by python-2.6.6-64.el6.x86_64

安装依赖包出现问题,各种尝试,百度出一个真正可行的办法,仅此记录一下

[root@localhost ~]# rpm -ivh python-2.6.6-64.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm --nodeps --force
Preparing...                ########################################### [100%]
   1:python                 ########################################### [ 50%]
   2:python-iniparse        ########################################### [100%]

--nodeps --force安装时不再分析包之间的依赖关系而直接安装,

也就不会再提示error: Failed dependencies:这样的错误