问题描述
提示:这里描述项目中遇到的问题:
使用Linux系统虚拟机,安装的是centos6.5,版本较老,优点是稳定,缺点是已停止维护,造成了本次yum源安装的问题。
一开始想要安装openssh-clients
yum install -y openssh-clients
报错:Cannot retrieve repository metadata (repomd.xml) for repository: Base Please verify its path and try again.
网上也看了很多教程,小结下:思路都是yum源出问题,使用阿里云的centos6源就行,只是因为centos6停止维护了,必须使用centos-vault源才行,很多都忽略了这一点。
按照此方法:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b11ZQKasv
可解决问题,这是阿里巴巴镜像站提供的方法,可靠性高,试了很多教程都不行,这个一下就解决了。
我在yum makecache
后多加一步yum -y update
之后yum install -y openssh-clients
就可以正常安装了。
PS:以上