加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

配置YUM源出现Errno 14 Could not open/read repomd.xml 错误的

发布时间:2020-12-15 16:58:00 所属栏目:安全 来源:网络整理
导读:[root@fancy yum.repos.d]# yum makecache Loaded 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

[root@fancy yum.repos.d]# yum makecache

Loaded 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 | 226 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 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.

file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
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
 
 
解决办法就是把本地源关闭:
将/etc/yum.repos.d/CentOS-Media.repo里面的enabled=1改成enabled=0即可

因为yum 寻包的顺序应该先是本地源,再寻网络源。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读