Debian - ERROR: The certificate of ‘raw.githubusercontent.com’ is not trusted.解决方法

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
分享
二维码
海报
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……
<<上一篇
下一篇>>
文章目录
关闭
目 录