虚拟机中 yum 安装时报错

来源:互联网 发布:九年级下册历史书淘宝 编辑:程序博客网 时间:2024/04/26 22:51
  1. 错误信息
Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.163.com * updates: mirrors.163.comfile:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xmlTrying other mirror.Error: Cannot retrieve repository metadata (repomd.xml) for repository: c6-media. Please verify its path and try again
  1. 解决办法

    删除原有的 CentOS-Media.repo 文件,重新使用 yum 命令的时候会重新生成

    rm CentOS-Media.repo CentOS-Media.repo.bak
  1. 问题原因

    /etc/yum.repos.d目录下配置文件 CentOS-Media.repo文件影响Yum访问源


本文在有道云笔记的地址(有道云笔记中保持最新的状态):
http://note.youdao.com/yws/public/redirect/share?id=e5ddf7e38cb7b3cf5c3a5907fc895bfb&type=false


0 0
原创粉丝点击