错误1. 执行yum命令报错
【错误:Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-epel.repo; 配置:ID 为 "failovermethod" 的 OptionBinding 不存在】
1.cd /etc/yum.repos.d
2.vim CentOS-epel.repo //注意标红的名称 这个要对应上.
# failovermethod=priority 注释了.
再运行会出第二个错误
错误2.Repository extras is listed more than once in the configuration
1.sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
2.sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
3.yum clean all
4.yum repolist
yum install git 测试.
学习[CentOS8]Repository extras is listed more than once in the configurationhttps://www.cnblogs.com/leoshi/p/16644165.html