开发者社区> 问答> 正文

CentOS epel 镜像报错404

yum update 报错

Loaded plugins: fastestmirror
base                                                                                                                                                                  | 3.6 kB  00:00:00
docker-ce-stable                                                                                                                                                      | 3.5 kB  00:00:00
docker-ce-test                                                                                                                                                        | 3.5 kB  00:00:00
epel                                                                                                                                                                  | 4.7 kB  00:00:00
Not using downloaded epel/repomd.xml because it is older than what we have:
  Current   : Wed Sep 16 22:51:40 2020
  Downloaded: Wed Sep 16 00:33:42 2020
extras                                                                                                                                                                | 2.9 kB  00:00:00
mysql-connectors-community                                                                                                                                            | 2.5 kB  00:00:00
mysql-tools-community                                                                                                                                                 | 2.5 kB  00:00:00
mysql57-community                                                                                                                                                     | 2.5 kB  00:00:00
salt-latest                                                                                                                                                           | 2.9 kB  00:00:00
updates                                                                                                                                                               | 2.9 kB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
epel/x86_64/primary_db         FAILED
http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found0 B  --:--:-- ETA
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.


 One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
 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=epel ...

     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 epel
        or
            subscription-manager repos --disable=epel

     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=epel.skip_if_unavailable=true

failure: repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.
http://mirrors.aliyun.com/epel/7/x86_64/repodata/42d56601cf36c0491d0d9713782f8980c1fc6bd22f5b99aae3909d21c6a52cea-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found

展开
收起
王永红 2020-09-18 10:57:33 2565 0
1 条回答
写回答
取消 提交回答
  • 修改方法 进入到下载好的CentOS6-Base-163.repo,或者CentOS7-Base-163.repo文件中 将我们$releasever全部改为6即可

    2021-02-20 15:47:01
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载