天天看點

git擷取大容量工程出錯:RPC failed; curl GnuTLS recv error : Decryption has failed.

機器64位Windows,安裝了VirtualBox6.1+Ubuntu16,

在Ubuntu下配置了Git,想下載下傳

git clone https://github.com/rjust/defects4j

結果報錯RPC failed; curl 56 GnuTLS recv error (-24): Decryption has failed.

網絡上查找資料,試了很多方法,比如:

增加Git的緩存 git config --global http.postBuffer 524288000

修改 git config --global http.sslVerify false

另外還實驗了不少方法,都無法從根本解決問題;後來從https://gitlab.com/gitlab-org/cookbook-gitlab/-/issues/33得到提示,安裝

sudo apt-get install libcurl4-openssl-dev

後問題解決。

Receiving objects: 100% (22366/22366), 140.38 MiB | 201.00 KiB/s, done.

Resolving deltas: 100% (14374/14374), done.

Checking out files: 100% (10656/10656), done.

原理我也不清楚,錯誤資訊Decryption has failed給我的感覺是傳輸協定的加密解密環節有問題,而libcurl4-openssl-dev大概是合乎要求的形式,替換了libcurl4-gnutls-dev。

我不想深入研究了,我是研究軟體測試的,不想在這些地方花時間。問題解決了。