首页 > 系统相关 >RHEL8 和 CentOS安装Ansible时Problem: cannot install the best candidate for the job - nothing provides

RHEL8 和 CentOS安装Ansible时Problem: cannot install the best candidate for the job - nothing provides

时间:2022-11-23 16:25:41浏览次数:57  
标签:core dist ansible noarch cannot install python3.9

问题

[root@localhost yum.repos.d]# yum install ansible -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository AppStream is listed more than once in the configuration
Last metadata expiration check: 0:01:54 ago on Wed 23 Nov 2022 02:37:19 AM EST.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides python3.9dist(ansible-core) needed by ansible-6.3.0-1.el8.noarch
  - nothing provides (python3.9dist(ansible-core) >= 2.13.3 with python3.9dist(ansible-core) < 2.14) needed by ansible-6.3.0-1.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

nothing provides python3.9dist(ansible-core) needed by ansible-6.3.0-1.el8.noarch

不理解这什么玩意,难道是说python3.9dist中的ansible-core模块?!!!。

解决

# 先安装CentOS源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

# 安装来自CentOS ConfigManagement SIG存储库的Ansible 2.9包
dnf install centos-release-ansible-29.noarch
# 安装Ansible
dnf install ansible

资源

Alibaba Mirror镜像仓库源

标签:core,dist,ansible,noarch,cannot,install,python3.9
From: https://www.cnblogs.com/XingXiaoMeng/p/16918653.html

相关文章

  • .NET CORE health check
    原文:HealthchecksinASP.NETCore|MicrosoftLearn varbuilder=WebApplication.CreateBuilder(args);builder.Services.AddHealthChecks();varapp=buil......
  • Opencore 常见kext驱动详解
    常用驱动AirportBrcmFixup:用于修复不能免驱的博通无线网卡AlpsT4USB:是VoodooI2C的插件,为AlpsT4USB触控板提供原生苹果手势支持AppleALC:用于驱动ALC芯片声卡,和Voodo......
  • Vue项目网页报错Cannot read property ‘components‘ of undefined
    Vue项目网页报错Cannotreadproperty‘components‘ofundefined   记录一下项目中出现的这个报错,这个报错的原因是在App.vue中导入的组件中重复引用了同一个文......
  • ASP.NET Core教程-Logging(日志)
    更新记录转载请注明出处:2022年11月23日发布。2022年11月20日从笔记迁移到博客。日志(Logging)基础日志说明日志并不会为应用程序增加实质性的功能,常用于记录错误信......
  • ASP.NET Core 简介
    ASP.NETCore是啥ASP.NETCore是一个跨平台的高性能开源框架,用于生成启用云且连接Internet的新式应用。ASP.NETCore可以干啥生成Web应用和服务、物联网(IoT)应......
  • core java 基础
    JDK11中支持源文件直接运行,不用再执行javac命令了。目前较新的JDK安装时会自动配置javac、java命令的路径到Path环境变量中去,所以javac、java可以直接使用。但是以前下载......
  • 【HMS Core】游戏初始化
    ​ 前提条件实现游戏初始化前,必须已经完成AppGalleryConnect的配置准备,参见AGC控制台准备。已完成集成SDK和配置混淆脚本。注意事项本场景中涉及的功能必须在应......
  • 【HMS Core】School Diary应用集成多个HMS Core服务,更好的体验华为生态系统
    ​一、介绍总览通过建立本次的SchoolDiary应用,您可以更好地体验华为生态系统的组成部分,包括认证服务、云存储和云数据库等Serverless服务。此外您还可以了解到如何使用......
  • 【HMS Core】构建SplitBill应用集成多个HMS Core服务,助力您更好的了解华为生态组成
    ​一、介绍Duration:3:00总览通过构建本次的SplitBill应用,您可以更好地了解华为生态的组成部分,包括认证服务、云存储和云数据库等Serverless服务。此外您还可以了解如......
  • .netcore3.1使用log4net/nlog记录日志
    //.netcore使用log4net替换ILooger实现services.AddLogging(logBuilder=>{logBuilder.ClearProviders();log......