Centos 下安裝ceph-deploy遇到問題
阿新 • • 發佈:2019-01-05
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