Debian - ERROR: The certificate of ‘raw.githubusercontent.com’ is not trusted.解决方法
今天使用debian下载github上的脚本的时候出现了下图一样的错误.
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"如下所示:
wget --no-check-certificate 你要下载的SSL网址
第二种解决办法就是
安装ca-certificates
apt-get install ca-certificates -y
或者是
apt-get install ssl-cert
然后在尝试下载源文件即可。
THE END
0
二维码
海报
Debian - ERROR: The certificate of ‘raw.githubusercontent.com’ is not trusted.解决方法
今天使用debian下载github上的脚本的时候出现了下图一样的错误.
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.1……
文章目录
关闭