centos7.5部署salt及其组件、salt-master、salt-minion报python版本问题

背景:

yum安装salt、salt-master、salt-minion

报错:

Error: Package: python-msgpack-0.4.6-1.el6.x86_64 (epel)
Requires: libpython2.6.so.1.0()(64bit)
Error: Package: salt-2015.5.10-2.el6.noarch (epel)
Requires: python(abi) = 2.6
Installed: python-2.7.5-68.el7.x86_64 (@anaconda)
python(abi) = 2.7
python(abi) = 2.7
Available: python-2.7.5-88.el7.x86_64 (base)
python(abi) = 2.7
python(abi) = 2.7
Available: python3-3.6.8-13.el7.i686 (base)
python(abi) = 3.6
python(abi) = 3.6
Available: python34-3.4.10-4.el6.i686 (epel)
python(abi) = 3.4

系统信息:

[root@kafka-01 tools]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018
[root@kafka-01 tools]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.5.1804 (Core)
Release: 7.5.1804
Codename: Core

部署步骤(失败):

安装epel-release包:yum -y install epel-release
yum -y install salt salt-master salt-minion
报错:balabala。。。

原因:

release与python的依赖关系矛盾

解决办法:

[root@kafka-02 ~]# cd /etc/yum
[root@kafka-02 yum.repos.d]# vim saltstack.repo
[saltstack-repo]
name=SaltStack repo for RHEL/CentOS r e l e a s e v e r b a s e u r l = h t t p s : / / r e p o . s a l t s t a c k . c o m / y u m / r e d h a t / releasever baseurl=https://repo.saltstack.com/yum/redhat/ releaseverbaseurl=https://repo.saltstack.com/yum/redhat/releasever/ b a s e a r c h / l a t e s t e n a b l e d = 1 g p g c h e c k = 1 g p g k e y = h t t p s : / / r e p o . s a l t s t a c k . c o m / y u m / r e d h a t / basearch/latest enabled=1 gpgcheck=1 gpgkey=https://repo.saltstack.com/yum/redhat/ basearch/latestenabled=1gpgcheck=1gpgkey=https://repo.saltstack.com/yum/redhat/releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub

如果上述方法还是不能解决,可以尝试:
1.python多版本公用办法(自行百度,有很多教程)
2.用python的pip替代yum去下载salt、salt-master组件

你可能感兴趣的:(linux服务器部署安装,centos,linux)