fatal: unable to access“https://github.com/ ***“解决办法

不知道因为什么,有时候git clone 会报错:

fatal: unable to access 'https://github.com/ros/robot_state_publisher.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.

查阅资料,有几种解决办法:

  • 因为权限不够,比如
git clone https://github.com/ros/robot_state_publisher.git/

换成

sudo git clone https://github.com/ros/robot_state_publisher.git/

  • 第二种方法是把https换成git
git clone https://github.com/ros/robot_state_publisher.git

换成

git clone git://github.com/ros/robot_state_publisher.git

上面两种我都试过,有效。

  • 第三种比较复杂,我没试过
    https://blog.csdn.net/RedKeyer/article/details/96119320

你可能感兴趣的:(ROS)