标题:[实践OK]CentOS Linux release 8.5更换阿里yum源,centos8yum源不可用解决,Module yaml error: Unexpected key in data: static_context 出处:向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除 时间:Sun, 06 Mar 2022 00:48:05 +0000 作者:jackxiang 地址:http://jackxiang.com/post/11240/ 内容: 一、CentOS Linux release 8.5更换阿里yum源: wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo mv CentOS-Base.repo CentOS-Linux-BaseOS.repo sed -i -e 's/failovermethod/#failovermethod/g' /etc/yum.repos.d/CentOS-Linux-BaseOS.repo sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Linux-BaseOS.repo yum makecache 来自:https://blog.csdn.net/alfiy/article/details/121897360 二、Centos8 不在维护,第三方的镜像站中均已移除CentOS 8的源,yum install 会报错建议更换源。 备份旧的: cd /etc/yum.repos.d/ mv CentOS-Base-aliyun-8.repo CentOS-Base-aliyun-8.repo.bak mv CentOS-Base.repo CentOS-Base.repo.bak 下载新的: wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo wget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo yum clean all && yum makecache 下载: wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo yum install -y epel-release yum clean all rpm --rebuilddb yum update yum list yum makecache 来自:https://www.ngui.cc/article/show-390936.html Generated by Jackxiang's Bo-blog 2.1.1 Release