码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-06-14 15:11:50      阅读:9050      评论:0      收藏:0      [点我收藏+]

标签:span   sum   rod   sep   dha   sys   load   ini   end   

问题:

[[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.

标签:span   sum   rod   sep   dha   sys   load   ini   end   

原文地址:https://www.cnblogs.com/wangqianqiannb/p/9181947.html

(6)
(1)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!