問題現(xiàn)象】
更新或安裝exploit-database報錯如下:
lysmacbookair:opt laoyan$ sudo git clone https://github.com/offensive-security/exploit-database.git /opt/exploit-database
Cloning into '/opt/exploit-database'...
remote: Counting objects: 106517, done.
remote: Compressing objects: 100% (45/45), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
【問題原因】
該項目由于時代久遠(yuǎn),所以導(dǎo)致整個項目比較復(fù)雜龐大。出現(xiàn)這種錯誤,就是因為curl的postBuffer默認(rèn)值太小的原因,重新在終端配置一下這個值就可以了。
【解決方法】
lysmacbookair:opt laoyan$ git config --global http.postBuffer 114288000
修改此項后還出現(xiàn)上面的報錯,則繼續(xù)調(diào)大114288000 至更高的數(shù)字
lysmacbookair:exploit-database laoyan$ git config --list
查看到上面的修改值則修改成功了