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

yum安装软件包错误 HTTP Error 404: Not Found Trying ot...

程序员文章站 2022-03-03 16:26:36
...

近期要用到thrift,服务器OS为CentOS 5.4 32bit,准备编译环境的时候,使用了国内网易的镜像。正确选择了repo,但是在yum install gcc-c++的时候却报错了:


---> Package libstdc++-devel.i386 0:4.1.2-54.el5 set to be updated
http://mirror.neu.edu.cn/fedora/epel/5/i386/repodata/5614455df66c6d797b10c94f522270c1a729643e-filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.neusoft.edu.cn/epel/5/i386/repodata/5614455df66c6d797b10c94f522270c1a729643e-filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
http://mirrors.ustc.edu.cn/fedora/epel/5/i386/repodata/5614455df66c6d797b10c94f522270c1a729643e-filelists.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/5614455df66c6d797b10c94f522270c1a729643e-filelists.sqlite.bz2 from epel: [Errno 256] No more mirrors to try.
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest


根据提示,初步分析,貌似是镜像里面没有。话说rep我换的是163的,安装标准包也是标准的,除非yum坏了。网上各位大神还是很给力的,搜了下结果,果然是yum镜像数据库的原因。好么,那就更新下。

# yum clean all
# rpm --rebuilddb
# yum update
//然后再安装 g++等库

#yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel

至此,ok。



转载于:https://my.oschina.net/lxrm/blog/120381