YUM [Errno 256] No more mirrors to try.解决办法

本文解决使用yum安装bind包时出现的mirror资源耗尽错误,通过清理yum缓存和重新安装bind包来解决。详细步骤包括清理所有yum缓存、检查系统是否注册到RHN、安装bind包并解析依赖。最终成功安装了bind包。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误信息:
  Error Downloading Packages:
  30:bind-libs-9.3.6-4.P1.el5.i386: failure: bind-libs-9.3.6-4.P1.el5.i386.rpm from update: [Errno 256] No more mirrors to try.
  30:bind-utils-9.3.6-4.P1.el5.i386: failure: bind-utils-9.3.6-4.P1.el5.i386.rpm from update: [Errno 256] No more mirrors to try.
  30:bind-9.3.6-4.P1.el5.i386: failure: bind-9.3.6-4.P1.el5.i386.rpm from update: [Errno 256] No more mirrors to try.

输入下面的命令即可解决问题:

  1. yum clean all
  2. yum makecache

[root@rac2 ~]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
[root@rac2 ~]# yum install bind
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
update                                                                                                       | 1.3 kB     00:00     
primary.xml.gz                                                                                               | 825 kB     00:00     
update                                                         2985/2985
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 30:9.3.4-10.P1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package                   Arch                        Version                                    Repository                   Size
====================================================================================================================================
Installing:
bind                      x86_64                      30:9.3.4-10.P1.el5                         update                      961 k

Transaction Summary
====================================================================================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 961 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : bind                                              [1/1] 

Installed: bind.x86_64 30:9.3.4-10.P1.el5
Complete!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值