centos8 Errors during downloading metadata for repository 'base':

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

https://blog.csdn.net/tongkongyu/article/details/122824763

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容