解决gitclone报错 无法访问‘https://github.com/xxx.git/‘:GnuTLS recv error

由于电脑被我搞坏了,重新安装了ubuntu20.04
所以需要重新下载安装benchmark
第一次gitclone成功了

llxy@llxy-GS65-Stealth-9SD:~/tools$ git clone https://github.com/google/benchmark.git
正克隆到 'benchmark'...
remote: Enumerating objects: 6549, done.
remote: Counting objects: 100% (805/805), done.
remote: Compressing objects: 100% (441/441), done.
remote: Total 6549 (delta 460), reused 578 (delta 320), pack-reused 5744
接收对象中: 100% (6549/6549), 2.22 MiB | 33.00 KiB/s, 完成.
处理 delta 中: 100% (4229/4229), 完成.

第二次clone失败

llxy@llxy-GS65-Stealth-9SD:~/tools$ git clone https://github.com/google/googletest.git benchmark/googletest
正克隆到 'benchmark/googletest'...
fatal: 无法访问 'https://github.com/google/googletest.git/':GnuTLS recv error (-110): The TLS connection was non-properly terminated.
llxy@llxy-GS65-Stealth-9SD:~/tools$ git clone https://github.com/google/googletest.git benchmark/googletest
正克隆到 'benchmark/googletest'...
fatal: 无法访问 'https://github.com/google/googletest.git/':GnuTLS recv error (-54): Error in the pull function.

git clone时报错为

正克隆到 ‘benchmark/googletest’…
fatal: 无法访问 ‘https://github.com/google/googletest.git/’:GnuTLS recv error (-110): The TLS connection was non-properly terminated.

再次执行一遍依然报错
fatal: 无法访问 ‘https://github.com/google/googletest.git/’:GnuTLS recv error (-54): Error in the pull function.

再次执行就成功了,我觉得是git的网站连接不太稳定导致的

  • 5
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值