Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I tried to clone my project on my linux server via git and suddenly got this error:

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

This is asked many times, but answered none.

I am using bitbucket.

like image 481
Silidrone Avatar asked Oct 22 '16 18:10

Silidrone


1 Answers

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.

like image 64
Silidrone Avatar answered Nov 17 '22 20:11

Silidrone