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

相关推荐
想你依然心痛5 小时前
我的第一个开源项目:从0到1,我在GitHub写下的成长印记
开源·github
查老师8 小时前
人在上班,突然被开源社区用户点名不要脸?我想问你,你给我刷过几个子儿?
后端·开源·github
lpfasd1239 小时前
当 GitHub 宕机时,我们如何协作?
github
放飞自我的Coder11 小时前
【github-action 如何为github action设置secrets/environment】
github·action
绝无仅有12 小时前
编写 Go 项目的 Dockerfile 文件及生成 Docker 镜像
后端·面试·github
绝无仅有12 小时前
使用 Docker 部署 Go 项目(Beego 框架)
后端·面试·github
星哥说事13 小时前
开源轻量级表格革命——用Teable解锁你的数据管理新姿势
github
悟空聊架构14 小时前
从 0 到 1:Jenkins 对接企微机器人避坑指南(附可下载 Pipeline 模板)
后端·架构·github
HelloGitHub14 小时前
直击痛点的开源项目「GitHub 热点速览」
开源·github
超级小忍1 天前
深入解析 GitHub Actions 工作流文件编写:从入门到实战
github