【亲测有效】GnuTLS recv error (-110): The TLS connection was non-properly terminated.

【亲测有效】GnuTLS recv error [-110]: The TLS connection was non-properly terminated.

问题描述

fatal: unable to access ‘https://github.com/openai/CLIP.git/’: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
如图:
在这里插入图片描述
如果设置了代理则可能会出现类似下面的错误:
git下载出现:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误

解决方法一:【取消代理】

通过git的配置文件查看有无使用代理

git config --global http.proxy

git config --global https.proxy

若是有返回值,则使用下面命令取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

或者
打开c:\Users\当前用户目录下的.gitconfig文件(该文件默认是隐藏的)。将里面关于proxy的行删除

显示隐藏文件按:

Ctrl+H

这种方法对我无效。

方法二【如果取消代理无用】

若需使用代理,http协议和socket协议的配置分别如下,以8080端口为例:

可能是翻墙软件代理的问题,使用命令

git config --global http.proxy 127.0.0.1:(vpn代理端口号)

将代理端口改为和翻墙软件一致就行了。

# http
git config --global http.https://github.com.proxy http://127.0.0.1:8080
git config --global https.https://github.com.proxy https://127.0.0.1:8080
# socket
git config --global http.proxy 'socks5://127.0.0.1:8080'
git config --global https.proxy 'socks5://127.0.0.1:8080'

或者试试

apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000

方法三【这种方法对我有效】

直接关闭梯子,Ubuntu在设置中:
在这里插入图片描述
点击Network Proxy
然后选择disable即可:
在这里插入图片描述成功!
在这里插入图片描述


创作不易,观众老爷们请留步… 动起可爱的小手,点个赞再走呗 (๑◕ܫ←๑)
欢迎大家关注笔者,你的关注是我持续更博的最大动力


原创文章,转载告知,盗版必究



在这里插入图片描述


在这里插入图片描述
♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠ ⊕ ♠

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

旋转的油纸伞

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值