输入命令行:
- sudo dnf update
返回如下
- Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/CentOS-Epel.repo; 配置:ID 为 “failovermethod” 的 OptionBinding 不存在
- Repository epel is listed more than once in the configuration
解决办法
进入文件夹,打开CentOS-Epel.repo
将 /etc/yum.repos.d/CentOS-Epel.repo 文件中 failovermethod=priority 注释掉。
- [epel]
- name=EPEL for redhat/centos $releasever – $basearch
- baseurl=http://mirrors.tencentyun.com/epel/$releasever/Everything/$basearch
- #failovermethod=priority
- enabled=1
- gpgcheck=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8