wget通过代理下载之错误解决1(Proxy tunneling failed: Forwarding failureUnable to establish SSL connection.)

wget通过代理下载之错误解决1(Proxy tunneling failed: Forwarding failureUnable to establish SSL connection.)

当我们通过proxy运行wget下载文件时出现以下错误:

pi@raspberrypi:~ $ export http_proxy=http://192.168.32.13:8118      #--- http的代理
pi@raspberrypi:~ $ export https_proxy=http://192.168.32.13:8118     #--- https的代理
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ wget https://github.com/txthinking/brook/releases/download/v20210701/brook_linux_arm7
--2021-07-17 13:54:21--  https://github.com/txthinking/brook/releases/download/v20210701/brook_linux_arm7
Connecting to 192.168.32.13:8118... connected.
Proxy tunneling failed: Forwarding failureUnable to establish SSL connection.

解决方法:

https_proxy=http://192.168.32.13:8118改为https_proxy=https://192.168.32.13:8118即可,如下:

pi@raspberrypi:~ $ export https_proxy=https://192.168.32.13:8118    #--- 修改https的代理
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ wget https://github.com/txthinking/brook/releases/download/v20210701/brook_linux_arm7
--2021-07-17 13:53:40--  https://github.com/txthinking/brook/releases/download/v20210701/brook_linux_arm7
Connecting to 192.168.32.13:8118... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/85371712/4a5be780-d020-11eb-953b-d70dc2257677?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210717T055341Z&X-Amz-Expires=300&X-Amz-Signature=5d6931011c2e8d447a863ec2bbf4becfecc5ed51baf08a47f868a60fd642a647&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=85371712&response-content-disposition=attachment%3B%20filename%3Dbrook_linux_arm7&response-content-type=application%2Foctet-stream [following]
--2021-07-17 13:53:41--  https://github-releases.githubusercontent.com/85371712/4a5be780-d020-11eb-953b-d70dc2257677?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210717%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210717T055341Z&X-Amz-Expires=300&X-Amz-Signature=5d6931011c2e8d447a863ec2bbf4becfecc5ed51baf08a47f868a60fd642a647&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=85371712&response-content-disposition=attachment%3B%20filename%3Dbrook_linux_arm7&response-content-type=application%2Foctet-stream
Connecting to 192.168.32.13:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 9043968 (8.6M) [application/octet-stream]
Saving to: ‘brook_linux_arm7’

brook_linux_arm7                                100%[======================================================================================================>]   8.62M  4.40MB/s    in 2.0s    

2021-07-17 13:53:43 (4.40 MB/s) - ‘brook_linux_arm7’ saved [9043968/9043968]

pi@raspberrypi:~ $ 

最后

img

爱你!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值