[root@fancy yum.repos.d]# yum MakecacheLoaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base:mirrors.aliyun.com
* C6-media:
* extras:mirrors.aliyun.com
* updates:mirrors.aliyun.com
Base | 3.7 KB 00:00
Base/group_gz | MB KB 00:00
base/filelists_db | 6.4 MB 00:06
base/other_db | 2.8 MB 00:02
File:///media/CentOS/repodata/repomd.xml: [Errno] could not open/read File:///media/CentOS/repodata/repomd.xml
Trying other mirror.
File:///media/cdrecorder/repodata/repomd.xml: [Errno] could not open/read File:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
File:///mnt/cdrom/repodata/repomd.xml: [Errno] could not open/read File:///mnt/cdrom/repodata/repomd.xml
Trying other mirror.
Error:cannot Retrieve repository metadata (Repomd.xml) for Repository:c6-media. Please verify its path and try again
The solution is to turn the local source off: Change the/etc/yum.repos.d/centos-media.repo inside enabled=1 to Enabled=0
Because the order of the Yum should be the local source first, then the network source.