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

相关推荐
Moment3 小时前
腾讯终于对个人开放了,5 分钟在 QQ 里养一只「真能干活」的 AI 😍😍😍
前端·后端·github
小兵张健17 小时前
开源 playwright-pool 会话池来了
前端·javascript·github
goodspeed17 小时前
Git Worktree:多分支并行开发的利器
git·github
Moment2 天前
Vibe Coding 时代,到底该选什么样的工具来提升效率❓❓❓
前端·后端·github
有道AI情报局3 天前
网易有道龙虾 NAS 服务器部署与实战指南
github
徐小夕3 天前
JitWord 2.3: 墨定,行远
前端·vue.js·github
CoovallyAIHub3 天前
实时视觉AI智能体框架来了!Vision Agents 狂揽7K Star,延迟低至30ms,YOLO+Gemini实时联动!
算法·架构·github
CoovallyAIHub3 天前
开源:YOLO最强对手?D-FINE目标检测与实例分割框架深度解析
人工智能·算法·github
ZengLiangYi3 天前
写了个脚本,把 Gitee/GitLab 仓库一键批量迁移到 GitHub
github