我已在 CentOS Linux 版本 8.5.2111 计算机上安装了 ansible-2.9.27-1.el8.noarch。为此,我使用“dnf install epel-release”启用了“epel-release”存储库。
当我尝试使用“dnf升级ansible”升级Ansible时,我收到一个奇怪的“ansible-5.4.0-2.el8.noarch需要什么都没有提供(ansible-core >= 2.12.2 with ansible-core < 2.13)”错误:
[root@jenkins-master ~]# rpm -qR ansible
/usr/bin/python3.6
config(ansible) = 2.9.27-1.el8
python(abi) = 3.6
python3-jinja2
python3-jmespath
python3-pyyaml
python3-setuptools
python3-six
python3.6dist(cryptography)
python3.6dist(jinja2)
python3.6dist(pyyaml)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
sshpass
[root@jenkins-master ~]# dnf provides *ansible-core*
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:20:35 ago on Tue Jun 7 13:37:36 2022.
ansible-5.4.0-2.el8.noarch : Curated set of Ansible collections included in addition to ansible-core
Repo : epel
Matched from:
Other : *ansible-core*
[root@jenkins-slave1 yum.repos.d]# ls -1
CentOS-Linux-AppStream.repo
CentOS-Linux-BaseOS.repo
CentOS-Linux-ContinuousRelease.repo
CentOS-Linux-Debuginfo.repo
CentOS-Linux-Devel.repo
CentOS-Linux-Extras.repo
CentOS-Linux-FastTrack.repo
CentOS-Linux-HighAvailability.repo
CentOS-Linux-Media.repo
CentOS-Linux-Plus.repo
CentOS-Linux-PowerTools.repo
CentOS-Linux-Sources.repo
docker.repo
epel-modular.repo
epel-testing-modular.repo
epel-testing.repo
epel.repo
[root@jenkins-slave1 yum.repos.d]# grep enabled=1 *
CentOS-Linux-AppStream.repo:enabled=1
CentOS-Linux-BaseOS.repo:enabled=1
CentOS-Linux-Extras.repo:enabled=1
epel-modular.repo:enabled=1
epel.repo:enabled=1
epel.repo:enabled=1
epel.repo:enabled=1
有谁知道如何解决这个问题?与CentOS流切换有关吗?