shell报错解决2—— ERROR: cannot verify xxx‘s certificate, issued by ‘xxx’

报错内容

今天用命令从cuda官网下载cuda的时候遇到了如下的报错:

ERROR: cannot verify xxx's certificate, issued by 'https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run':
  Unable to locally verify the issuer's authority.
To connect to xxx insecurely, use '--no-check-certificate'.

这个报错的原因是我所在的服务器并没有相应的证书所以无法下载。

报错解决

在命令中间加上--no-check-certificate即可,比如原先我下载cuda的命令是:

wget https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run

现在只需要变成:

wget --no-check-certificate https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run

这样就不需要检查证书了,虽然这样可能会带来一定的不安全性,但是实践证明好像也没什么不安全的地方)

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值