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博客

相关推荐
云空12 小时前
《VPython 相关的 GitHub 仓库地址清单》
github·可视化·vpython
小弥儿15 小时前
GitHub今日热榜 | 2026-08-14:OSINT情报工具回流,本地AI赛道升温
人工智能·学习·开源·github
Shell运维手记1 天前
Linux 常用基础命令学习笔记
linux·运维·笔记·学习·算法·github
码流怪侠1 天前
StereoCrafter 源码级深度拆解:腾讯如何把 2D 视频“抠“成 3D
github·音视频开发·webvr
fthux1 天前
不必下载整个仓库:GitZip Pro 让 GitHub 文件与文件夹批量下载更简单
前端·chrome·ai·edge·开源·github·firefox
人工智能研究所2 天前
GitHub 10k+ Star:用自然语言描述系统,AI 帮你生成可交互架构图
人工智能·github·交互·自然语言·系统架构图·archify
逛逛GitHub2 天前
一个 Skill.md 拿下 1.8 万星,这个 GitHub 项目让 AI 先说重点。
github
云空2 天前
《GitHub 从入门到进阶完整教程》
github
Timeless1592 天前
Git与TortoiseGit使用教程:第二章 Git常用命令及TortoiseGit使用教程
github
用户69371750013842 天前
深夜炸场!DeepSeek 没发新模型,却重构了整个 Agent 生态
前端·后端·github