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

本文解决使用yum安装bind包时出现的mirror资源耗尽错误,通过清理yum缓存和重新安装bind包来解决。详细步骤包括清理所有yum缓存、检查系统是否注册到RHN、安装bind包并解析依赖。最终成功安装了bind包。
错误信息:
  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!
Error downloading packages: perl-Storable-2.45-3.el7.x86_64: [Errno 256] No more mirrors to try. 4:perl-macros-5.16.3-297.el7.x86_64: [Errno 256] No more mirrors to try. perl-Scalar-List-Utils-1.27-248.el7.x86_64: [Errno 256] No more mirrors to try. 4:perl-libs-5.16.3-297.el7.x86_64: [Errno 256] No more mirrors to try. 2:vim-filesystem-7.4.629-7.el7.x86_64: [Errno 256] No more mirrors to try. 1:perl-Pod-Escapes-1.04-297.el7.noarch: [Errno 256] No more mirrors to try. 2:vim-enhanced-7.4.629-7.el7.x86_64: [Errno 256] No more mirrors to try. perl-Text-ParseWords-3.29-4.el7.noarch: [Errno 256] No more mirrors to try. perl-threads-1.87-4.el7.x86_64: [Errno 256] No more mirrors to try. perl-Encode-2.51-7.el7.x86_64: [Errno 256] No more mirrors to try. perl-threads-shared-1.43-6.el7.x86_64: [Errno 256] No more mirrors to try. 1:perl-Pod-Simple-3.28-4.el7.noarch: [Errno 256] No more mirrors to try. perl-Time-Local-1.2300-2.el7.noarch: [Errno 256] No more mirrors to try. perl-Socket-2.010-5.el7.x86_64: [Errno 256] No more mirrors to try. perl-podlators-2.5.1-3.el7.noarch: [Errno 256] No more mirrors to try. perl-File-Temp-0.23.01-3.el7.noarch: [Errno 256] No more mirrors to try. perl-PathTools-3.40-5.el7.x86_64: [Errno 256] No more mirrors to try. 4:perl-Time-HiRes-1.9725-3.el7.x86_64: [Errno 256] No more mirrors to try. perl-HTTP-Tiny-0.033-3.el7.noarch: [Errno 256] No more mirrors to try. perl-constant-1.27-2.el7.noarch: [Errno 256] No more mirrors to try. 4:perl-5.16.3-297.el7.x86_64: [Errno 256] No more mirrors to try. perl-Exporter-5.68-3.el7.noarch: [Errno 256] No more mirrors to try. perl-Getopt-Long-2.40-3.el7.noarch: [Errno 256] No more mirrors to try. 2:vim-common-7.4.629-7.el7.x86_64: [Errno 256] No more mirrors to try. 1:perl-parent-0.225-244.el7.noarch: [Errno 256] No more mirrors to try. perl-Carp-1.26-244.el7.noarch: [Errno 256] No more mirrors to try. perl-File-Path-2.09-2.el7.noarch: [Errno 256] No more mirrors to try. perl-Filter-1.49-3.el7.x86_64: [Errno 256] No more mirrors to try. perl-Pod-Perldoc-3.20-4.el7.noarch: [Errno 256] No more mirrors to try. perl-Pod-Usage-1.63-3.el7.noarch: [Errno 256] No more mirrors to try.
最新发布
06-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值