SaltStack安装时python版本冲突导致安装失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SaltStack安装时python版本冲突导致安装失败相关的知识,希望对你有一定的参考价值。
yum -y install salt-master 安装时,出现以下报错:
file /usr/lib64/python2.6/zipfile.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64
file /usr/lib64/python2.6/zipfile.pyo from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64
从报错信息中可以发现conflicts,这是冲突的意思,即python-libs-2.6.6-66.el6_8.x86_64与python-2.6.6-36.el6.x86_64发生冲突;
查询发现系统已经安装了2.6.6-26版本
[[email protected] ~]# rpm -q python-libs
python-libs-2.6.6-36.el6.x86_64
[[email protected] ~]# rpm -q python
python-2.6.6-36.el6.x86_64
而yum安装salt-master的版本是2015.5.10-2.el6 ,需要python-libs-2.6.6-66.el6.x86_64版本,因此导致发生冲突
python-libs-2.6.6-66.el6_8.x86_6
python-2.6.6-36.el6.x86_64
尝试卸载发生冲突的包然后安装需要的版本,可以发现卸载不了,这个包被其它包依赖,受保护,不能卸载
yum -y remove python-2.6.6-36.el6.x86_64
Error: Trying to remove "yum", which is protected
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
换个思维,那我是否可以升级
yum -y update python-2.6.6-36.el6.x86_64
[[email protected] ~]# rpm -qa python-libs
python-libs-2.6.6-66.el6_8.x86_64
[[email protected] ~]# rpm -qa python
python-2.6.6-66.el6_8.x86_64
升级后果然可以安装salt-master了
以上是关于SaltStack安装时python版本冲突导致安装失败的主要内容,如果未能解决你的问题,请参考以下文章
我的电脑已经安装好PADS和ORCAD,可是就是装不了modelsim,好像有点冲突,破解不了