centos7 yum源报错,最终解决了

报错如下

[root@localhost yum.repos.d]# yum update
已加载插件:fastestmirror
Determining fastest mirrors
https://hi5yb889.mirror.aliyuncs.com/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
正在尝试其它镜像。
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (added from: https://hi5yb889.mirror.aliyuncs.com),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=hi5yb889.mirror.aliyuncs.com ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable hi5yb889.mirror.aliyuncs.com
        or
            subscription-manager repos --disable=hi5yb889.mirror.aliyuncs.com

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=hi5yb889.mirror.aliyuncs.com.skip_if_unavailable=true

failure: repodata/repomd.xml from hi5yb889.mirror.aliyuncs.com: [Errno 256] No more mirrors to try.
https://hi5yb889.mirror.aliyuncs.com/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

解决

搜索了一些文章,都是 CSDN 上的,但是都没用,没解决,后来看了这篇才解决的
CentOS 7- 配置阿里镜像源-阿里云开发者社区 (aliyun.com)

本作品采用《CC 协议》,转载必须注明作者和本文链接
六月的风
Junwind
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!