今天开始试着安装saltstack 来应用到公网环境中来应对越来越多的服务器。


可是一来就出师不利 。在yum 安装salt-master 时  yum报了以下错误:




Transaction Check Error:

 file /usr/lib/python2.6/site-packages/Crypto/Cipher/__init__.py from install of python26-crypto-2.3-5.el5.i386 conflicts with file from package python-crypto-2.0.1-22.el6.i686

 file /usr/lib/python2.6/site-packages/Crypto/Hash/__init__.py from install of python26-crypto-2.3-5.el5.i386 conflicts with file from package python-crypto-2.0.1-22.el6.i686


网上搜索后,应该是版本冲突问题,需要安装前面的高版本包,但是已有个低版本包导致安装不能。


解决方法


强制无支持卸载低版本包  然后再安装saltstack就可以


rpm -e --nodeps python-crypto-2.0.1-22.el6.i686


yum  install salt-master



然后正常安装完成!