linux服务器用yum upgrade命令升级时提示一大堆,是什么原因?

系统版本:CentOS Stream 9 x86_64(Py3.7.9)
[root@VM-0-12-centos Python-3.9.5]# yum upgrade
Repository base is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository AppStream is listed more than once in the configuration
上次元数据过期检查:0:09:04 前,执行于 2022年04月18日 星期一 16时42分47秒。
模块依赖问题:

  • 没有东西提供 module(platform:el8)(模块 perl-IO-Socket-SSL:2.066:8030020201222215140:ea09926d.x86_64 需要它)

  • 无法为软件包安装最佳更新候选 kpatch-dnf-0.4-2.el8.noarch

  • 软件包 python39-3.9.6-2.module_el8.5.0+897+68c4c210.x86_64 被模块过滤过滤掉
    (尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)

yum Repository 定义了重复了


cd /etc/yum.repos.d/

more than once 不止一次,意思是有重复的
建议:
检查一下yum源是否有重复的或里面的配置重复