🎀 🍬 🧁 🍭 🎈

centos 配置:ID 为 “failovermethod” 的 OptionBinding 不存在

输入命令行:

  • 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
🧑‍🍳

糖果主厨

新月如钩,悬于幽蓝丝绒般的夜空,洒下清柔的薄纱。
🍭 个人网站 📝 已发布 62 篇糖果
🍬 🍭 🧁 🍡 🍬