更多内容: http://blog.yuhai.win
- 错误信息
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.163.com
* updates: mirrors.163.com
file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] 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
解决办法
删除原有的 CentOS-Media.repo 文件,重新使用 yum 命令的时候会重新生成
rm CentOS-Media.repo CentOS-Media.repo.bak
问题原因
/etc/yum.repos.d目录下配置文件 CentOS-Media.repo文件影响Yum访问源
本文在有道云笔记的地址(有道云笔记中保持最新的状态):
http://note.youdao.com/yws/public/redirect/share?id=e5ddf7e38cb7b3cf5c3a5907fc895bfb&type=false