阿里云下载镜像失败:ERROR: certificate common name “img.ucdl.pp.uc.cn” doesn’t match requested host name “mirr

版权声明:转载请注明出处! https://blog.csdn.net/ddxygq/article/details/80890214

阿里云有一个镜像网站,网址是https://mirrors.aliyun.com/apache/
在公司的时候,发现从这里下载东西很快,因为这是国内的镜像嘛!回到家后,想在自己电脑上虚拟机下载一个hbase,发现出现错误:
下载失败
ERROR: certificate common name “img.ucdl.pp.uc.cn” doesn’t match requested host name “mirrors.aliyun.com”.
To connect to mirrors.aliyun.com insecurely, use ‘–no-check-certificate’.

有两种解决办法:

1、将wget https://mirrors.aliyun.com/apache/hbase/1.3.2.1/hbase-1.3.2.1-bin.tar.gz中的https改为http即可,
下载速度很快
可以看到,下载速度很快,达到了5M每秒(我的网速平时看视频都很卡的,哈哈!)
2、仔细查看错误提示,有一句话,提示我们用一个参数”–no-check-certificate”,意思是不检查证书,
这里写图片描述
那就试一下吧,
果然成功
ok,解决了。
用阿里云的镜像确实很快,mvn包管理本地仓库也可以配置一个阿里云的地址,不用去国际网站http://mvnrepository.com/下载,提高了依赖的下载速度。

猜你喜欢

转载自blog.csdn.net/ddxygq/article/details/80890214
今日推荐