yum安装报错

我的系统是centos 6.8 x86

安装bind时出错如下:


[root@Ams ~]# yum install bind -y

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: ftp.sjtu.edu.cn

 * extras: ftp.sjtu.edu.cn

 * updates: ftp.sjtu.edu.cn

file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml

Trying other mirror.

base                                                                                                                         | 3.7 kB     00:00     

epel                                                                                                                         | 4.3 kB     00:00     

extras                                                                                                                       | 3.4 kB     00:00     

updates                                                                                                                      | 3.4 kB     00:00     

Resolving Dependencies

–> Running transaction check

—> Package bind.x86_64 32:9.8.2-0.47.rc1.el6 will be installed

–> Finished Dependency Resolution


Dependencies Resolved


====================================================================================================================================================

 Package                       Arch                            Version                                         Repository                      Size

====================================================================================================================================================

Installing:

 bind                          x86_64                          32:9.8.2-0.47.rc1.el6                           Local                          4.0 M


Transaction Summary

====================================================================================================================================================

Install       1 Package(s)


Total download size: 4.0 M

Installed size: 7.3 M

Downloading Packages:



Error Downloading Packages:

  32:bind-9.8.2-0.47.rc1.el6.x86_64: failure: Packages/bind-9.8.2-0.47.rc1.el6.x86_64.rpm from Local: [Errno 256] No more mirrors to try.



解决方案:

就是把本地源关闭

将/etc/yum.repos.d/CentOS-Media.repo里面的enabled=1改成enabled=0即可


现在可以安装了。

原创文章,作者:mississippi,如若转载,请注明出处:http://www.178linux.com/27073

(1)
mississippimississippi
上一篇 2016-08-02 10:58
下一篇 2016-08-02 10:58

相关推荐

  • CentOS下命令基础练习

    马哥教育网络班23期+第五周课堂作业 CentOS下命令基础练习 1、显示当前系统上root、fdeora或user1用户的默认shell 2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello() 3、使用echo命令输出一个绝对路径 使用grep取出其基名 扩展:取出其路径名 (…

    Linux干货 2016-10-24
  • 对虚拟机键入Ctrl+Alt+Delete的详细说明

            日常中我们用Windows系统时经常使用Ctrl+Alt+Delete来换出任务管理的菜单,进行任务管理,linux中也有这样的键入命令,但不是管理任务,而是重启系统!!!那么我们就应该注意了,不要误操作重启服务器。       &n…

    2017-03-28
  • linux发展史

    Linux 发展史 说明 此前对linux认识模糊一知半解,近期通过学习将自己对于linux的发展总结一下方便大家日后的学习。那Linux是目前一款非常火热的开源操作系统,可是linux是什么时候出现的,又是因为什么样的原因被开发出来的呢。以下将对linux的发展历程进行详细的讲解。    目录 一、Linux发展背景 二、UINIX的诞…

    Linux干货 2016-10-14
  • redis主/从配置及基于sentinel的故障转移

    一、NoSQL基础概念: ACID:原子性、一致性、隔离性、持久性;特性:数据量大、数据变化非常大(数据增长化、流量分布变化、数据间耦合结构变化)、数据源很多; CAP、BASECAP C:多个数据节点的的数据一致;A:用户发出请求后的有限时间范围内返回结果;P:network partition,网络发生分区后,服务是否依可用;CAP理论:一个分布式系统不…

    Linux干货 2014-10-15
  • N26 第二周

    1、Linux上的文件管理类命令都有哪些,其常用的使用方法及其相关示例演示。  [1]mkdir : make directories            mkdir [OPTION]… DIRECTORY… &n…

    Linux干货 2017-02-05
  • Linux 下的帮助及文件管理

    1、whatis     whatis command 或 man -f command     仅能提供命令基本的介绍。不提具体用法。     基于数据库的查找,优点:检索速度快;缺点:缺乏实时性    &n…

    2017-07-15