0

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

yum install cloud-init

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

在此处输入图像描述

在我接受安装(带有“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 安装失败并出现“与文件冲突”错误?

4

0 回答 0