配置文件中为:
[base]
14 name=CentOS-6 - Base - 163.com
15 baseurl=http://mirrors.163.com/centos/6/os/i386/Packages
16 #mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
17 gpgcheck=1
18 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
使用yum list时出现了:
[root@localhost Downloads]# yum list
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
file:///media/cdrom/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/Server/repodata/repomd.xml
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: instDVD. Please verify its path and try again
不知你现在解决了没有,我也遇到同样的我问题,后来网上看资料是说DNS没有设置好
[[email protected] ~]# vi /etc/resolv.conf