利用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!

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

时间: 2024-10-03 05:07:25

利用yum安装时,报错 [Errno 256] No more mirrors to try.的相关文章

CentOS7.3yum安装MariaDB报错[Errno 256]

在yum安装MariaDB时出现下面这个错误提示,然后着手排查,先检查了/etc/yum.repo.d/下的配置文件,没有错误. failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try. http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host

使用yum安装zabbix报错

背景:我使用yum方式安装软件时,比如zabbix这种软件,我们在安装时一般都是直接到zabbix官网,按照官方的步骤进行安装,但是有一个问题,官方的服务器不在国内,时常会在安装时导致超时报错.此时解决思路就因该是将官方源替换成国内的镜像源,例如阿里云.163的镜像源.要点就是网络问题!网络问题!网络问题! 注意安装zabbix时也要选择阿里云的镜像repo,地址如下: rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/4.4/rhel/7/x8

阿里云ECS服务器 Centos7.2 使用 yum 安装 ansible 报错

#####################使用阿里云的ECS服务器Centos7.2系统安装ansible提示安装不上###########原因通过Yum安装最新发布版本通过Yum安装RPMs适用于 EPEL 6, 7, 以及仍在支持中的Fedora发行版.托管节点的操作系统版本可以是更早的版本(如 EL5), 但必须安装 Python 2.4 或更高版本的Python.Fedora 用户可直接安装Ansible, 但RHEL或CentOS用户,需要 配置 EPEL连接地址:https://fe

centos6.5 安装stardict 出现问题 [Errno 256] No more mirrors to try

1. 下载startdict #wget http://downloads.naulinux.ru/pub/NauLinux/6x/i386/sites/School/RPMS/stardict-3.0.2-1.el6.i686.rpm 2. 安装 # yum localinstall stardict-3.0.2-1.el6.i686.rpm 这时出现问题:[ Errno 256 ] No more mirrors to try 解决办法: 1. yum clean all 2. yum ma

【问题】yum安装软件报错ERROR:dbus.proxies

转自:Yum安装报错:ERROR:dbus.proxies 环境: [红帽企业Linux.6.4.服务器版].rhel-server-6.4-x86_64-dvd(ED2000.COM).iso 安装时选用Software Development Workstation 问题描述: yum安装DHCP服务时输出 [[email protected] yum.repos.d]# yum list | grep dhcp dhcp-common.x86_64 12:4.1.1-34.P1.el6 @

yum 安装 依赖报错

今天使用yum安装的时候 报错: Error: Multilib version problems found. This often means that the root cause 应该是yum依赖报错 使用yum命令的时候加上这个选项即可. --setopt=protected_multilib=false

【转】yum安装软件报错

今天在测试环境使用yum安装,遇到一个问题: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 处理很简单,修改文件"/etc/yum.repos.d/epel.repo", 将baseurl的注释取消, mirrorlist注释掉.即可. 参考URL: http://www.netpc.com.cn/593.html

yum 安装程序报错 UnicodeDecodeError

yum 安装程序时报异常 UnicodeDecodeError Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 285, in user_main errcode = m

fedora 14系统使用yum 安装gcc报错

错误:Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again {大体的一个思路: 1使用默认的yum源,若不行 2使用网络yum源,若不行 3使用光盘yum源,} 网上也找不到FC14的yum源了.那就使用光盘,本地安装吧 mount /dev/cdrom /media cp -rf /medir/* /mnt      (这一步似乎