CentOS 6.8 环境
报错
error 404 mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml
根据文末的阿里云链接下载和配置完yum
,发现无法更新成功,报404错误。应该是阿里云的这个源无法使用了,没有及时更新,用下面的替换下。
更新源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.livejq.top/livejq/rmscripts/raw/branch/master/yum/CentOS/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo https://repo.livejq.top/livejq/rmscripts/raw/branch/master/yum/CentOS/epel-6.repo
最后
yum clean all && yum makecache && yum update
评论区