Git Clone Gnutls Recv Error (-9): a Tls Packet with Unexpected Length Was Received

git clone GnuTLS recv error (-9): A TLS packet with unexpected length was received

It turns out you just need to remove git with sudo apt-get purge git but NOT with sudo apt-get --purge git for some reason it wont work if you do --purge. Now install it again by typing sudo apt-get install git. And then when you try your clone, it should work properly.

How to fix git error: RPC failed; curl 56 GnuTLS

To solve this issue:

Rebuilding git with openssl instead of gnutls fixed my problem.

I followed these instructions

git clone error: gnutls_handshake() failed: An unexpected TLS packet was received

Finally found the answer. It seems that I have to do:

git config --global http.proxy http://<my_proxy>:<my_port>
git config --global https.proxy https://<my_proxy>:<my_port>

Spent quick some time on this but luckily it works in the end. I thought this would be hard to fix but it turns out to be some commands that I never did before on Ubuntu 16.04.



Related Topics



Leave a reply



Submit