当前位置: 首页 > 工具软件 > GnuTLS > 使用案例 >

error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.

沈博涉
2023-12-01

root@cp01:~# git clone https://github.com/ceph/ceph.git
Cloning into 'ceph'...
remote: Enumerating objects: 1173281, done.
remote: Counting objects: 100% (195/195), done.
remote: Compressing objects: 100% (117/117), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
root@cp01:~# apt-get install gnutls-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libgnutls-dane0 libopts25 libunbound8
Suggested packages:
  dns-root-data
The following NEW packages will be installed:
  gnutls-bin libgnutls-dane0 libopts25 libunbound8
0 upgraded, 4 newly installed, 0 to remove and 80 not upgraded.
Need to get 714 kB of archives.
After this operation, 2,765 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 libunbound8 amd64 1.9.4-2ubuntu1.3 [350 kB]
Get:2 http://mirrors.aliyun.com/ubuntu focal-security/main amd64 libgnutls-dane0 amd64 3.6.13-2ubuntu1.7 [29.1 kB]
Get:3 http://mirrors.aliyun.com/ubuntu focal/universe amd64 libopts25 amd64 1:5.18.16-3 [59.4 kB]                                                                                
Get:4 http://mirrors.aliyun.com/ubuntu focal-security/universe amd64 gnutls-bin amd64 3.6.13-2ubuntu1.7 [275 kB]                                                                 
Fetched 714 kB in 10s (72.1 kB/s)                                                                                                                                                
Selecting previously unselected package libunbound8:amd64.
(Reading database ... 79121 files and directories currently installed.)
Preparing to unpack .../libunbound8_1.9.4-2ubuntu1.3_amd64.deb ...
Unpacking libunbound8:amd64 (1.9.4-2ubuntu1.3) ...
Selecting previously unselected package libgnutls-dane0:amd64.
Preparing to unpack .../libgnutls-dane0_3.6.13-2ubuntu1.7_amd64.deb ...
Unpacking libgnutls-dane0:amd64 (3.6.13-2ubuntu1.7) ...
Selecting previously unselected package libopts25:amd64.
Preparing to unpack .../libopts25_1%3a5.18.16-3_amd64.deb ...
Unpacking libopts25:amd64 (1:5.18.16-3) ...
Selecting previously unselected package gnutls-bin.
Preparing to unpack .../gnutls-bin_3.6.13-2ubuntu1.7_amd64.deb ...
Unpacking gnutls-bin (3.6.13-2ubuntu1.7) ...
Setting up libopts25:amd64 (1:5.18.16-3) ...
Setting up libunbound8:amd64 (1.9.4-2ubuntu1.3) ...
Setting up libgnutls-dane0:amd64 (3.6.13-2ubuntu1.7) ...
Setting up gnutls-bin (3.6.13-2ubuntu1.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
root@cp01:~# git config --global http.sslVerify false
root@cp01:~# git config --global http.postBuffer 1048576000
root@cp01:~# 
root@cp01:~# git clone https://github.com/ceph/ceph.git
Cloning into 'ceph'...

解决方法
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000

 类似资料: