报错:
linux中使用wget下载anaconda安装包时出现了如下报错:
[ac1agy0832@login02 program]$ wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
--2024-06-18 21:46:53-- https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.32.241, 104.16.191.158, 2606:4700::6810:bf9e, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.32.241|:443... connected.
ERROR: cannot verify repo.anaconda.com's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=E6’:
Issued certificate has expired.
To connect to repo.anaconda.com insecurely, use `--no-check-certificate'.
解决方法1:
执行下列命令然后输入pass word
sudo yum install -y ca-certificates
解决方法2:
在wget命令后面加上--no-check-certificate (不检查证书)选项。如下:
wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh --no-check-certificate