欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

yum [Errno 14] HTTP Error 404 - Not Found

程序员文章站 2022-01-03 10:04:33
...

概述

由于安装的是CentOS 7最小版,故需要使用yum安装相应的依赖包

报错提示

# yum makecache
已加载插件:fastestmirror
Repository base is listed more than once in the configuration
base                                                                                                    | 3.6 kB  00:00:00     
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Mon Oct 24 16:22:33 2016
  Downloaded: Thu Dec 10 06:35:45 2015
extras                                                                                                  | 3.4 kB  00:00:00     
update                                                                                                                                                                                                                                                 | 2.9 kB  00:00:00     
updates                                                                                               | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
base/7/x86_64/filelists_db     FAILED                                          
http://mirrors.163.com/centos/7/os/x86_64/repodata/68f2490c8f8cb5d6645365679b9ffef7508cc330688b31b0393f8ca2b28b773a-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found         ]  0.0 B/s |    0 B  --:--:-- ETA 
正在尝试其它镜像。
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/

base/7/x86_64/other_db         FAILED                                          
http://mirrors.163.com/centos/7/os/x86_64/repodata/e58fdb116e3fcc50700c4ed940933e3c7cc468ae3ef6957586f3af8ed3a5fde2-other.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found            ]  0.0 B/s |    0 B  --:--:-- ETA 
正在尝试其它镜像。
http://mirrors.163.com/centos/7/os/x86_64/repodata/68f2490c8f8cb5d6645365679b9ffef7508cc330688b31b0393f8ca2b28b773a-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
正在尝试其它镜像。

问题原因

  • 经查找分析,yum镜像数据库坏了

解决方法

# yum clean all
# rpm --rebuilddb
# yum update
# yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel

转载于:https://my.oschina.net/siiiso/blog/779219