yum命令Repository epel is listed more than once in the configuration CentOS Linux 8
centos8官方源已下線
# 進(jìn)入yum目錄
cd /etc/yum.repos.d
# 刪除目錄下所有文件(注意完整復(fù)制枢冤,不要漏了那個點(diǎn))
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