wget 出现错误

使用 wget下载https开头的网址域名时报错,可以尝试加上 --no-check-certificate (不检查证书)选项。

例子:下载anaconda3(清华镜像)

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.11-Linux-x86_64.sh

出现错误

错误: 无法验证 mirrors.tuna.tsinghua.edu.cn 的由 “/C=US/O=Let's Encrypt/CN=R3” 颁发的证书:
  颁发的证书已经过期。

加上上述命令

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.11-Linux-x86_64.sh --no-check-certificate

成功下载。

猜你喜欢

转载自blog.csdn.net/qq_38295645/article/details/125151414
今日推荐