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

近期要用到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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值