自学内容网 自学内容网

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.
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端口

git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

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

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 来查看完整的全局配置

git config --global -l

关闭代理配置

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

git config --global --unset http.proxy
git config --global --unset https.proxy

查看代理配置

git config --get http.proxy
git config --get https.proxy

参考:

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


原文地址:https://blog.csdn.net/qq_15204179/article/details/137629120

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!