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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值