Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
解决方法:
不管是用上面还是用下面那命令都会出现那错误
原因:没有配置resolv.conf
解决方法:
到/etc目录下配置resolv.conf加入nameserver IP
保存再次运行上面命令就可以。
Error:Existing lock /var/run/yum.pid: another copy is running as pid 8098.Another app is currently holding the yum lock; waiting for it to exit..
解决方法:
rm -rf /var/run/yum.pid
本文介绍了解决在使用YUM过程中遇到的无法获取仓库元数据(repomd.xml)的问题,以及如何处理被占用的YUM锁文件。通过配置resolv.conf文件并指定DNS服务器,可以解决元数据检索失败的问题。同时,提供了清除锁文件的方法。
1085

被折叠的 条评论
为什么被折叠?



