yum update 之后centos 8 failovermethod和appstream报错 | server 运维论坛-金年会app官方网

linux版本:

yum update 之后centos 8 failovermethod和appstream报错问题

原因:执行完yum update 系统更新到centos 8 ,出现如下错误

  • appstream错误
    errors during downloading metadata for repository 'appstream':
    - curl error (6): couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=appstream&infra=stock [could not resolve host: mirrorlist.centos.org]
    error: failed to download metadata for repo 'appstream': cannot prepare internal mirrorlist: curl error (6): couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=appstream&infra=stock [could not resolve host: mirrorlist.centos.org]
  • failovermethod错误
    invalid configuration value: failovermethod=priority in /etc/yum.repos.d/centos-epel.repo; configuration: optionbinding with id "failovermethod" does not exist
    repository epel is listed more than once in the configuration

金年会app官方网的解决方案:

  1. failovermethod处理
    需要在/etc/yum.repos.d/centos-epel.repo删掉failovermethod选项

failovermethod=priority
yum update 之后centos 8 failovermethod和appstream报错问题

  1. 执行:
  • cd /etc/yum.repos.d/
  • sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/centos-*
  • sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/centos-*

处理完再去执行我们自己的命令
yum -y install systat

yum update 之后centos 8 failovermethod和appstream报错问题

最后就正常了

本作品采用《cc 协议》,转载必须注明作者和本文链接
每天一点小知识,到那都是大佬,哈哈
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
网站地图