转 - 解决github gnutls_handshake() failed问题

 

转自:解决github gnutls_handshake() failed的问题

 

github clone文件的时候提示gnutls_handshake() failed,有几种解决方法:

1:https改为git

参考此文

 

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.com

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

 

5:取消或者设置代理

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

取消代理,还是不行

 

6:采用openssl替代gnutls

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

 

posted @ 2021-12-11 16:32  eeeeeeee鹅  阅读(2116)  评论(0编辑  收藏  举报