解决github gnutls

编程入门 行业动态 更新时间:2024-10-18 16:53:15

解决<a href=https://www.elefans.com/category/jswz/34/1771235.html style=github gnutls"/>

解决github gnutls

经常遇到github clone文件的时候提示gnutls_handshake() failed的问题,网上找了一遍,有几种方法,记录一下:

1:https改为git

参考git 错误:fatal: unable to access '/': gnutls_handshake() failed: The TLS connection was non-properly terminated. - 鲍曼小学生 - 博客园

2:https改为http

参考Git gnutls_handshake() failed解决办法 - osc_yabfjcbk的个人空间 - OSCHINA - 中文开源技术交流社区

实测有效。

3:用git config命令配置sslVerify为false

git config http.sslVerify "false"

我的项目由于是python脚本自动下载,所以尝试第三种方法,没有成功

4:增加用户信息,然后再git,这次成功

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example

但是拉取几个repo之后,又不行了

5:取消或者设置代理

取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
使用代理
git config --global http. http://127.0.0.1:7890
git config --global https. https://127.0.0.1:7890

取消代理,还是不行

6:采用openssl替代gnutls

参考

git clone https:// gnutls_handshake() failed: The TLS connection was non-properly terminated._laviolette的专栏-CSDN博客

似乎这是最后的解决方法了

更多推荐

解决github gnutls

本文发布于:2024-02-12 01:14:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1684868.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:github   gnutls

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!