{channel.title!channel.name} - 楚淮公司周东林

YUM安装报错

配置yarn源后用yum install yarn 安装报错,主要原因是网站地址是https的。


报错信息:

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.cn99.com
https://dl.yarnpkg.com/rpm/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: yarn. Please verify its path and try again

解决方法:

在/etc/yum.conf 配置文件 后面加上 sslverify=false 重新执行命令即可。


浏览.发表于:2018-07-25 17:56:45