yum命令Repository epel is listed more than once in the configuration CentOS Linux 8
centos8官方源已下线
# 进入yum目录
cd /etc/yum.repos.d
# 删除目录下所有文件(注意完整复制,不要漏了那个点)
rm -rf ./*
# 安装正确的源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
# 生成缓存
yum makecache
yum源的原因。于是安装 EPEL 源,使用最新版本8,
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
网友评论