开发者社区 问答 正文

CentOS6的epel源缺少repodata.xml文件

yum install时报错如下: http://mirrors.aliyun.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

展开
收起
1764942719597749 2020-12-04 17:37:06 5100 分享 版权
来自: 镜像站
3 条回答
写回答
取消 提交回答
  • 阿里云官方镜像站已全面更新升级上线啦:https://developer.aliyun.com/mirror/

    2021-07-20 14:14:26
    赞同 展开评论
  • 2020年11月30日 centos6各大开源镜像站已经停止维护了 但是阿里源还是可以用的 因为他的centos-vault仓库里放了之前版本的centos的包 只需要在centos命令行界面下执行一下几条命令:

    sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo 
    yum clean all
    yum makecache
    
    2020-12-18 17:40:26
    赞同 展开评论
  • 官方停止更新6了

    2020-12-09 15:21:46
    赞同 展开评论