ceph安装依赖冲突

[root@ceph-node1 ~]# yum install ceph-deploy -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ceph-deploy.noarch 0:1.5.31-1.el7 will be installed
--> Processing Dependency: python-distribute for package: ceph-deploy-1.5.31-1.el7.noarch
Package python-setuptools is obsoleted by python2-setuptools, but obsoleting package does not provide for requirements
--> Finished Dependency Resolution
Error: Package: ceph-deploy-1.5.31-1.el7.noarch (iaas)
           Requires: python-distribute
           Available: python-setuptools-0.9.8-4.el7.noarch (centos)
               python-distribute = 0.9.8-4.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

是因为openstack M版里的python2-setuptools与centos里python-setuptools冲突,ceph需要的是python-setuptools,所以先把openstack源停掉,先装python-setuptools,再恢复就没问题了
1.注释iaas

[centos]
name=centos
baseurl=file:///opt/centos
gpgcheck=0
enabled=1
#[iaas]
#name=iaas
#baseurl=file:///opt/iaas-repo
#gpgcheck=0
#enabled=1

2.[root@ceph-node1 ~]# yum install python-setuptools -y
3.取消注释安装ceph[root@ceph-node1 ~]# yum install ceph-deploy -y

你可能感兴趣的:(ceph安装依赖冲突)