github克隆报错:failed: The TLS connection was non-properly terminated.

github克隆gazebo_ros_control报错

fatal: unable to access 'https://github.com/ros-controls/gazebo_ros_control.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
bash 复制代码
sudo apt-get install ros-noetic-gazebo-ros-control

git 克隆gazebo_ros_control:

复制代码
git clone https://github.com/ros-controls/gazebo_ros_control.git

报错:

failed: The TLS connection was non-properly terminated.

我的代理 socket v5 1080 端口

所以我使用 socket v5 协议使用1080端口

bash 复制代码
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

如果需要代理 http 协议使用7890端口

bash 复制代码
git config --global http.proxy http:/127.0.0.1:7890
git config --global https.proxy https:/127.0.0.1:7890

验证代理配置

代理配置操作完后, 可以通过 git config --global -l 来查看完整的全局配置

bash 复制代码
git config --global -l

关闭代理配置

要取消代理配置可以使用 --unset 选项.

bash 复制代码
git config --global --unset http.proxy
git config --global --unset https.proxy

查看代理配置

bash 复制代码
git config --get http.proxy
git config --get https.proxy

参考:

Git 代理(Proxy) 配置Git 代理(Proxy) 配置_git proxy-CSDN博客

相关推荐
极智-9962 小时前
GitHub 热榜项目-日榜精选(2026-02-02)| AI智能体、终端工具、视频生成等 | openclaw、99、Maestro等
人工智能·github·视频生成·终端工具·ai智能体·电子书管理·rust工具
樱花落海洋1116 小时前
GitHub DeskTop Can`t find URP项目
github
我的golang之路果然有问题7 小时前
使用 Hugo + GitHub Pages + PaperMod 主题 + Obsidian 搭建开发博客
golang·go·github·博客·个人开发·个人博客·hugo
codezzzsleep7 小时前
fuClaudeBackend:面向fuclaude的轻量后端代理 + Key 管理后台
ai·github·ai编程
kjzd1238 小时前
GitHub 热门项目趋势分析报告 (2026年2月2日)
github
LostSpeed8 小时前
git - github工程中不能包含大文件
git·github
CoderJia程序员甲9 小时前
GitHub 热榜项目 - 日榜(2026-02-02)
人工智能·ai·大模型·github·ai教程
_oP_i11 小时前
git gui设置github sshkey
git·github
mathematican11 小时前
Git本地修改导致pull失败的解决方法
github
MicrosoftReactor13 小时前
技术速递|GitHub Copilot SDK 与混合 AI 实践:README 到 PPT 的自动化转换流程
人工智能·github·copilot