debian wget 报ERROR: The certificate of ‘xxx’ is not trusted.

1 # wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
2 --2019-01-11 15:04:41-- https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
3 Resolving www.python.org (www.python.org)... 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
4 Connecting to www.python.org (www.python.org)|151.101.0.223|:443... connected.
5 ERROR: The certificate of ‘www.python.org’ is not trusted.
6 ERROR: The certificate of ‘www.python.org’ hasn't got a known issuer.

第一种解决方式:

 1 # wget --no-check-certificate https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
 2 --2019-01-11 15:05:21-- https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
 3 Resolving www.python.org (www.python.org)... 151.101.0.223, 151.101.64.223, 151.101.128.223, ...
 4 Connecting to www.python.org (www.python.org)|151.101.0.223|:443... connected.
 5 WARNING: The certificate of ‘www.python.org’ is not trusted.
 6 WARNING: The certificate of ‘www.python.org’ hasn't got a known issuer.
 7 HTTP request sent, awaiting response... 200 OK
 8 Length: 17212420 (16M) [application/octet-stream]
 9 Saving to: ‘Python-3.6.8.tar.xz’
10 
11 Python-3.6.8.tar.xz 100%[=======================================================================================================>] 16.42M 85.4KB/s in 97s
12 
13 2019-01-11 15:06:58 (173 KB/s) - ‘Python-3.6.8.tar.xz’ saved [17212420/17212420]

第二种解决方式:

 1 # apt install -y ca-certificates  

原文地址:https://www.cnblogs.com/lmx1002/p/10255273.html