[root@object ~]# yum install python-ceph -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink | 4.4 kB 00:00
* base: mirrors.neusoft.edu.cn
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
Ceph | 951 B 00:00
Ceph/primary | 17 kB 00:00
Ceph 55/55
Ceph-noarch | 951 B 00:00
Ceph-noarch/primary | 6.1 kB 00:00
Ceph-noarch 22/22
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:02
ceph-source | 2.9 kB 00:00
ceph-source/primary_db | 1.9 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.2 MB 00:03
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.2 MB 00:02
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-ceph.x86_64 0:0.80.1-0.el6 will be installed
--> Processing Dependency: librbd1 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: librados2 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: libcephfs1 = 0.80.1-0.el6 for package: python-ceph-0.80.1-0.el6.x86_64
--> Processing Dependency: python-flask for package: python-ceph-0.80.1-0.el6.x86_64
--> Running transaction check
---> Package libcephfs1.x86_64 0:0.80.1-0.el6 will be installed
--> Processing Dependency: libsnappy.so.1()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
--> Processing Dependency: libboost_thread-mt.so.5()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
--> Processing Dependency: libleveldb.so.1()(64bit) for package: libcephfs1-0.80.1-0.el6.x86_64
---> Package librados2.x86_64 0:0.80.1-0.el6 will be installed
---> Package librbd1.x86_64 0:0.80.1-0.el6 will be installed
---> Package python-flask.noarch 1:0.9-7.el6 will be installed
--> Processing Dependency: python-werkzeug for package: 1:python-flask-0.9-7.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: 1:python-flask-0.9-7.el6.noarch
--> Running transaction check
---> Package boost-thread.x86_64 0:1.41.0-18.el6 will be installed
---> Package leveldb.x86_64 0:1.7.0-2.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-2.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-2.el6.noarch
---> Package python-werkzeug.noarch 0:0.8.3-2.el6 will be installed
---> Package snappy.x86_64 0:1.1.0-1.el6 will be installed
--> Running transaction check
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================
Package Arch Version Repository Size
=======================================================================================================
Installing:
python-ceph x86_64 0.80.1-0.el6 Ceph 70 k
Installing for dependencies:
boost-thread x86_64 1.41.0-18.el6 base 41 k
leveldb x86_64 1.7.0-2.el6 Ceph 158 k
libcephfs1 x86_64 0.80.1-0.el6 Ceph 1.6 M
librados2 x86_64 0.80.1-0.el6 Ceph 1.5 M
librbd1 x86_64 0.80.1-0.el6 Ceph 347 k
python-babel noarch 0.9.4-5.1.el6 base 1.4 M
python-flask noarch 1:0.9-7.el6 epel 190 k
python-jinja2-26 noarch 2.6-2.el6 Ceph-noarch 526 k
python-werkzeug noarch 0.8.3-2.el6 Ceph-noarch 552 k
snappy x86_64 1.1.0-1.el6 base 39 k
Transaction Check Error:
file /usr/lib/python2.6/site-packages/ceph_argparse.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_argparse.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_rest_api.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/ceph_rest_api.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/cephfs.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/cephfs.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rados.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rados.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rbd.pyc from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
file /usr/lib/python2.6/site-packages/rbd.pyo from install of ceph-0.80.1-2.el6.x86_64 conflicts with file from package python-ceph-0.80.1-0.el6.x86_64
Error Summary
-------------
解决安装python-ceph 、ceph时会有上面的报错,上面的报错是由于软件包的下载版本不一致导致,需要修改epel yum 源
vi /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever
exclude=*ceph*