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

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

你可能感兴趣的:(Shell,Error,linux,服务器,运维)