本文最后更新于 2023-05-14,文章内容可能已经过时。

centos 8配置阿里云的源后,执行sudo dnf update,出现以下log:

Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist

解决办法

/etc/yum.repos.d/CentOS-Epel.repo 文件中所有的failovermethod=priority 都注释掉。