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