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

相关推荐
拾贰_C1 小时前
【Github | GitHub Copilot | 学生认证】 GitHub Copilot学生如何认证
github
旅之灵夫2 小时前
【GitHub项目推荐--OpenArm:开源7自由度仿人机械臂平台】
github
一乐小哥3 小时前
坚持迭代一个 Chrome 插件半年后,我的同事问我:"这不是 Chrome 自带的功能吗?"
chrome·github·ai编程
Smilezyl3 小时前
一个独立开发者,靠一份 markdown 驱动 Claude Code, 用 20 天跑通 9 个包的 monorepo 工程
前端·人工智能·github
峰向AI3 小时前
做小红书、画信息图、动漫图:这个skill太实用了
github
Cosolar3 小时前
封神级 TTS!VoxCPM2 凭连续表征,玩转多语言合成 + 创意音色 + 无损声纹克隆
人工智能·llm·github
码流怪侠3 小时前
【GitHub】andrej-karpathy-skills:让 AI 编程助手告别三大通病
人工智能·程序员·github
码流怪侠3 小时前
【GitHub】OpenClaw:开源个人AI助手的新标杆
人工智能·程序员·github
宝桥南山6 小时前
GitHub Models - 尝试一下使用GitHub Models
microsoft·ai·微软·c#·github·.netcore
zh_xuan7 小时前
使用libcurl调用http接口
c++·github·libcurl