yum 報錯2

我的系統是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即可


現在可以安裝了。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章