安装Cloud-Init时发生Python冲突

时间:2017-04-19 14:03:25

标签: python centos yum cloud-init

我有一台CentOS 6.0虚拟机。我正在尝试在其上安装cloud-init(与AWS相关)。我跑

yum install cloud-init

然后,我看到cloud-init依赖于许多python包。

enter image description here

在我接受安装(使用“y”)之后,我看到了数百个这样的错误:

file /usr/lib64/python2.6/xml/etree/ElementPath.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementPath.pyo from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementTree.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementTree.pyo from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64

usr / bin / python -V返回Python 2.6.5,因此似乎虚拟机正在使用此版本,并且依赖项使用2.6.6。但是 - 我不明白为什么当系统使用2.6.5时,cloud-init不能只使用2.6.6。为什么cloud-init的安装失败并出现“与文件冲突”错误?

0 个答案:

没有答案