[CentOS8]Repository extras is listed more than once in the configuration

1. 问题

[root@localhost ~]# yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
Repository extras is listed more than once in the configuration

2. 解决办法

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-*

3. 重新缓存

yum clean all
yum repolist

END

posted @ 2022-08-31 18:30  LeoShi2020  阅读(1628)  评论(0编辑  收藏  举报