Centos下在用 yum 安装ceph-deploy 时遇到依赖问题:
$ sudo yum -y install ceph-deploy
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* base: mirror.rackspace.com
* epel: fedora-epel.mirror.lstn.net
* epel-debuginfo: fedora-epel.mirror.lstn.net
* epel-source: fedora-epel.mirror.lstn.net
* extras: repos.dfw.quadranet.com
* updates: mirrors.advancedhosters.com
Resolving Dependencies
--> Running transaction check
---> Package ceph-deploy.noarch 0:1.5.36-0 will be installed
--> Processing Dependency: python-distribute for package: ceph-deploy-1.5.36-0.noarch
Package python-setuptools-0.9.8-4.el7.noarch is obsoleted by python2-setuptools-22.0.5-1.el7.noarch which is already installed
--> Finished Dependency Resolution
Error: Package: ceph-deploy-1.5.36-0.noarch (ceph-noarch)
Requires: python-distribute
Available: python-setuptools-0.9.8-4.el7.noarch (base)
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
... prompt'''
解决方法:
如果在更新yum的ceph源之后仍然会出现这个问题,可以使用pip安装
$sudo yum -y install python-pip
$sudo pip install ceph-deploy
$sudo pip install --upgrade pip