wget下载脚本的时候出现错误

今天使用debian下载github上的脚本的时候出现了下图一样的错误.

1
2
3
4
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
ERROR: The certificate of ‘raw.githubusercontent.com’ is not trusted.
ERROR: The certificate of ‘raw.githubusercontent.com’ hasn't got a known issuer

错误非常常见,主要是系统过于精简所以很多包没有安装。

解决方法

在Wget后面添加”–no-check-certificate”如下所示:

1
wget --no-check-certificate

你要下载的SSL网址

第二种解决办法就是

1
2
3
安装ca-certificates

apt-get install ca-certificates -y

或者是

1
apt-get install ssl-cert
-------------���Ľ�����л�����Ķ�-------------
0%