yum的/repodata/repomd.xml错误的解决方法

2020年04月29日

运行yum安装文件的时候提示 Error: Cannot retrieve repository metadata (repomd.xml)…….. 和 file:///media/CentOS/repodata/repomd.xml: [Errno 14] 错误,查阅了网络上的很多资料都是说要替换源链接地址,其实这里提示错误的是本地挂载源的问题metadata,
解决方法很简单,如下
/etc/yum.repos.d/CentOS-Media.repo 把这个文件改名或暂时移动到其他目录,再执行yum命令进行操作即可.


sicnature ---------------------------------------------------------------------
Your current IP address is: 3.235.249.219
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://myzhenai.com/post/3305.html

2条评论

  • 华清池 2022年02月15日在8:39 上午

    这样改还是不行的

    • 海南胡说 2022年02月15日在9:04 上午

      那就是您的更新源有问题,再换一个更新的源

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注