当前位置:   article > 正文

wget Unable to establish SSL connection.错误_ubuntu 命令行 unable to establish ssl connection gith

ubuntu 命令行 unable to establish ssl connection github

现象:

-2022-07-28 16:53:59--  https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.5.0/kubebuilder_darwin_amd64
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/125275487/bf05a98f-78c6-4862-be5c-2f746dfe4d0e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220728%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220728T085212Z&X-Amz-Expires=300&X-Amz-Signature=2cda7102f562dd0e1ded58e557aa466baf957d3de44958d524acf30ae0a0e3d5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=125275487&response-content-disposition=attachment%3B%20filename%3Dkubebuilder_darwin_amd64&response-content-type=application%2Foctet-stream [following]
--2022-07-28 16:54:01--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/125275487/bf05a98f-78c6-4862-be5c-2f746dfe4d0e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220728%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220728T085212Z&X-Amz-Expires=300&X-Amz-Signature=2cda7102f562dd0e1ded58e557aa466baf957d3de44958d524acf30ae0a0e3d5&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=125275487&response-content-disposition=attachment%3B%20filename%3Dkubebuilder_darwin_amd64&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
GnuTLS: The TLS connection was non-properly terminated.
Unable to establish SSL connection.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

解决办法:

  • 加上跳过验证证书的参数–no-check-certificate
  • 有些网站不允许通过非浏览器的方式进行下载,使用代理既可以解决问题,加上代理的参数:
    –user-agent=“Mozilla/5.0 (X11;U;Linux i686;en-US;rv:1.9.0.3) Geco/2008092416 Firefox/3.0.3”
wget https://github.com/kubernetes-sigs/kubebuilder/releases/download/v3.5.0/kubebuilder_darwin_amd64  --user-agent="Mozilla/5.0 (X11;U;Linux i686;en-US;rv:1.9.0.3) Geco/2008092416 Firefox/3.0.3" --no-check-certificate
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/797268
推荐阅读
相关标签
  

闽ICP备14008679号