linux中wget下载https时报错

报错:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值