yum源404问题解决

作者: 雨中星辰0 | 来源:发表于2020-12-15 17:41 被阅读0次

问题描述:
yum源设置的是阿里云的yum源,之前都是好好的,今天突然就发现不能用了。提示,网址404。

问题详情:

YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

 

http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.

问题原因:
2020年11月30日 centos6各大开源镜像站已经停止维护了。

解决办法:

  1. 寻找可用的centos6的yum源。
    阿里云有centos-vault仓库,该仓库用于存放之前版本centos的包。

report文件内容如下:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
  
[base]
name=CentOS-6.10 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  
#released updates
[updates]
name=CentOS-6.10 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  
#additional packages that may be useful
[extras]
name=CentOS-6.10 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  
#contrib - packages by Centos Users
[contrib]
name=CentOS-6.10 - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
  1. 找centos6的镜像文件,里面有yum源,可以做一个本地源。(懒得麻烦,这个方法就废弃了)

相关文章

  • yum源404问题解决

    问题描述:yum源设置的是阿里云的yum源,之前都是好好的,今天突然就发现不能用了。提示,网址404。 问题详情:...

  • centos更换yum源

    更换系统默认yum 源 更换yum源为阿里云yum源 备份系统默认的yum源 下载阿里云yum源 添加 epel ...

  • Centos Issue

    CentOS配置本地Yum源、阿里云Yum源、163Yum源、并配置Yum源的优先级

  • CentOS8 yum安装AppStream报错问题

    更换国内yum源: 更换国内yum源,推荐阿里云yum或者腾讯yum。 阿里yum源: https://devel...

  • Yum 本地源同步和配置

    情景: 为内网主机搭建 yum 源,且 yum 源同步 外网的源服务器。 同步 yum 源 同步本地 yum 源有...

  • centos系统中yum安装应用出现doesn't have e

    解决方法:修改默认yum源为阿里云yum源,步骤如下: 备份原有yum源: 创建yum源目录 下载阿里云yum源配...

  • Rdhat红帽系统yum源更换centos源

    红帽yum源更换centos源 1卸载红帽yum源[root@localhost ~]# yum repolist...

  • 5、搭建本地yum源

    一、yum源搭建 1、认识yum源yum源文件所在目录/etc/yum.repos.d,有四个yum源,其中Cen...

  • Centos7 安装mysql

    选择yum源 访问MySQL Yum存储库的下载yum源。 检测源 卸载源 安装5.7源 查看可供安装的MySQL...

  • yum本地源制作

    yum源分类 yum源 epel源(epel(Extra Packages for Enterprise Linu...

网友评论

    本文标题:yum源404问题解决

    本文链接:https://www.haomeiwen.com/subject/dhiwgktx.html