fatal: unable to access ‘https://github.com/asmaloney/libE57Format/‘: error:02FFF036:system library:

1. 报错

fatal: unable to access 'https://github.com/asmaloney/libE57Format/': error:02FFF036:system library:func(4095):Connection reset by peer

2. 原因:

网络原因,使用https的方式总是无法完成下载。

可在github上随便找个仓库,试试可以使用https吗?如果不可以的话,使用第3点解决方案,否则,尝试第四点。

3.解决方案1(https clone失败)

git config --global url.git@github.com:.insteadOf https://github.com/

此命令的作用是将所有git clone的url中包含https://github.com/的都替换为git@github.com:,以ssh的方式去执行git clone,例如:

git clone https://github.com/envoyproxy/data-plane-api.git
执行了上边的命令后,将转为
git clone git@github.com:envoyproxy/data-plane-api.git

4. 其他方案

4.1 修改gitconfig,增大缓存

 git config --global http.postBuffer  524288000
 git config --global https.postBuffer  524288000

4.2 修改host,增加以下ip域名

140.82.113.3 github.com 
146.75.77.194 github.global.ssl.fastly.net
185.199.108.153  assets-cdn.github.com
185.199.109.153  assets-cdn.github.com
185.199.110.153  assets-cdn.github.com
185.199.111.153  assets-cdn.github.com

 4.3 修改gitconfig,取消http代理

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

参考:

[iOS开发]--Cocoapods安装GRPC报错记录 - 简书

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

低吟浅笑

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值