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:~ $
最后
爱你!