apt get update, "ERROR: The certificate of 'tsinghua.edu.cn' is not trusted."

转载链接

这两天在安装一脚本的时候wget下载总是出现ERROR: The certificate of `github.com' is not trusted.的错误提示,这是提示你该网站的证书不被信任,解决这种问题的方法有两种。

1.临时解决

运行wget等命令时在后面加上--no-check-certificate就行了。

2.完全解决,安装 ca-certificates 包

apt-get install ca-certificates

安装完证书包后就可以顺畅运行脚本了。

添加新评论