ubuntu 安装 opencv时,意外退出
正克隆到 'opencv'...
remote: Enumerating objects: 331244, done.
remote: Counting objects: 100% (56/56), done.
remote: Compressing objects: 100% (42/42), done.
fatal: 远端意外挂断了89/331244), 12.87 MiB | 449.00 KiB/s
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
解决办法:
首先挂上Steam++加速,通过以下代码安装steam++
curl -sSL https://steampp.net/Install/Linux.sh | bash
通过以下代码打开steam++的运行权限
sudo chmod a+w /etc/hosts
如果提示github证书错误,可以关掉ssl证书认证
git config --global http.sslVerify false
然后输入以下代码,提升git传输
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
git config --global http.postBuffer 1024288000
通过以下代码查看配置
git config --list
##########结果如下############
http.sslverify=false
http.lowspeedlimit=0
http.lowspeedtime=999999
http.postbuffer=1024288000