利用yum安装时,报错 [Errno 256] No more mirrors to try.

Posted wangqianqiannb

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了利用yum安装时,报错 [Errno 256] No more mirrors to try.相关的知识,希望对你有一定的参考价值。

问题:

[[email protected] ~]# yum install -y perl-DBD-mysql  
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
wbg                                                                                                           | 4.1 kB     00:00 ...
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Fri Sep 26 20:03:04 2014
  Downloaded: Fri Sep 26 20:02:42 2014
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                              Arch                         Version                           Repository                 Size
=====================================================================================================================================
Installing:
 perl-DBD-MySQL                       x86_64                       4.013-3.el6                       wbg                       134 k

Transaction Summary
=====================================================================================================================================
Install       1 Package(s)

Total download size: 134 k
Installed size: 338 k
Downloading Packages:


Error Downloading Packages:
  perl-DBD-MySQL-4.013-3.el6.x86_64: failure: ../Packages/perl-DBD-MySQL-4.013-3.el6.x86_64.rpm from wbg: [Errno 256] No more mirrors to try.

 

解决方法:

[[email protected] yum.repos.d]# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: wbg
Cleaning up Everything
[[email protected] yum.repos.d]# yum makecache
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
wbg                                                                                                           | 4.1 kB     00:00 ...
wbg/group_gz                                                                                                  | 211 kB     00:00 ...
wbg/filelists_db                                                                                              | 3.3 MB     00:00 ...
wbg/primary_db                                                                                                | 3.1 MB     00:00 ...
wbg/other_db                                                                                                  | 1.4 MB     00:00 ...
Metadata Cache Created
[[email protected] yum.repos.d]# yum update  
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Update Process
No Packages marked for Update

再次进行安装:问题已经解决
[[email protected] yum.repos.d]# ls
redhat.repo  wbg.repo
[[email protected] yum.repos.d]# yum install -y perl-DBD-MySQL  
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                              Arch                         Version                           Repository                 Size
=====================================================================================================================================
Installing:
 perl-DBD-MySQL                       x86_64                       4.013-3.el6                       wbg                       134 k

Transaction Summary
=====================================================================================================================================
Install       1 Package(s)

Total download size: 134 k
Installed size: 338 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                 1/1
  Verifying  : perl-DBD-MySQL-4.013-3.el6.x86_64                                                                                 1/1

Installed:
  perl-DBD-MySQL.x86_64 0:4.013-3.el6                                                                                                

Complete!

 

























































































以上是关于利用yum安装时,报错 [Errno 256] No more mirrors to try.的主要内容,如果未能解决你的问题,请参考以下文章

yum 报错 [Errno 14] Could not open/read file:///media/iso/repodata/repomd.xml

yum安装提示错误“Error downloading packages: 32:bind-chroot-9.9.4-14.el7.x86_64: [Errno 256] No more mirr

Yum:[Errno 5] [Errno 2] No such file or directory

centos7 yum下载报错,尝试其他镜像,网络不可达

报[Errno 256] No more mirrors to try.错,的另一种解决办法

[ERROR]-Error: failure: repodata/filelists.xml.gz from addons: [Errno 256] No more mirrors to try.