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
下一篇 2016-08-02

相关推荐

  • Linux的命令使用格式

    ◆Linux命令格式:command [options]  [arguments]command:命令options:  –单词   或   -单字如: ls –allequ      ls -als -a -b -cequ&…

    Linux干货 2016-10-31
  • 软硬链接区别及tr转换命令

    软硬链接的区别 (1)软连接可以 跨文件系统 ,硬连接不可以 (2)关于 I节点的问题 。硬连接不管有多少个,都指向的是同一个I节点,会把 结点连接数增加,只要结点的连接数不是 0,文件就一直存在 ,不管你删除的是源文件还是连接的文件。只         要有一个存在,文件就 存…

    Linux干货 2016-08-08
  • Stream EDitor ( Blog 6)

    文本流编辑器,行编辑器sed详解

    Linux干货 2017-11-27
  • 使用yum源码编译安装程序

    需要的安装包:httpd-2.2.29.tar.bz2 1、安装develpment tools     yum groupinstall "Development Tools" 2、下载服务器中的http源安装包到本地,然后解压到指定文件夹中 lftp 10.1.0.1:/pub/Sources/…

    Linux干货 2016-08-24
  • 推荐-zabbix原理篇(1)

    zabbix原理篇(1) 介绍zabbix 之前让我们先来熟悉一下什么snmp ☺ SNMP:Simple Network Management Protoclol  翻译一下:简单网络管理协议 SNMP的工作模式是啥 ☺ NMS向agent采集数据 agent向NMS报告数据 NMS请求agent修改配置 SNMP组件…

    Linux干货 2016-04-11
  • N25-第10周博客作业

    请详细描述CentOS的启动流程     启动第一步–加载BIOS         当打开计算机电源,计算机会首先加载BIOS信息,BIOS信息是如此的重要,以至于计算机必须在最开始就找到它,这是因为BIOS中包含了CPU的相关信息、设备启动顺序信息、硬盘信息、内存信息…

    Linux干货 2017-03-10