git clone: GnuTLS recv error (-9): A TLS packet wi

2019-04-20 03:22发布

问题:

I'm trying to clone a git repository and I'm receiving following error while executing the command:

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

My client machine is a Ubuntu 14.04.

回答1:

This is Known bug as @Ivan Ternovtsiy said ,but there is workaround

Remove current GIT from your system

 sudo apt-get purge git

Download GIT deb git_1.9.1-1_amd64.deb link

Execute the downloaded DEB.



回答2:

If you are in china,may be you should set proxy for git,for example

git config --global https.proxy 'socks5://127.0.0.1:9999'


标签: git ubuntu ssl