[Bug 1397685] Re: git gnutls_handshake() failed: A TLS packet with unexpected length was received.
chenzero
1397685 at bugs.launchpad.net
Tue Oct 25 05:19:45 UTC 2016
I also encountered similar problem when run:
$ git clone -v https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
Cloning into 'linux-firmware'...
* Couldn't find host git.kernel.org in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
* Trying 199.204.44.194...
* Trying 2620:3:c000:a:0:1991:8:25...
* Immediate connect fail for 2620:3:c000:a:0:1991:8:25: Network is unreachable
* Trying 2001:4f8:1:10:0:1991:8:25...
* Immediate connect fail for 2001:4f8:1:10:0:1991:8:25: Network is unreachable
* Connected to git.kernel.org (199.204.44.194) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* gnutls_handshake() failed: Handshake failed
* Closing connection 0
fatal: unable to access 'https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/': gnutls_handshake() failed: Handshake failed
OS: Ubuntu 14.04 64bits.
I checked "apt-get update"
and ensure that packages: git and libcurl3-gnutls are latest.
Installed version:
git: 1:1.9.1-1ubuntu0.3
libcurl3-gnutls: 7.35.0-1ubuntu2.9
If change git clone URL from https to http, git clone successful.
Thank you very much!
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gnutls28 in Ubuntu.
https://bugs.launchpad.net/bugs/1397685
Title:
git gnutls_handshake() failed: A TLS packet with unexpected length was
received.
Status in git package in Ubuntu:
Confirmed
Status in gnutls26 package in Ubuntu:
Confirmed
Status in gnutls28 package in Ubuntu:
Confirmed
Bug description:
Platform: Ubuntu 14.04, ppc64le (Power 8 LE), git version: 1:1.9.1-1
When accessing a public repository over HTTPS, I get the following error:
$ git clone --no-checkout https://git.fedorahosted.org/git/lvm2.git lvm2
Cloning into 'lvm2'...
fatal: unable to access 'https://git.fedorahosted.org/git/lvm2.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received.
Accessing the same public repository from a different machine running
in a different network - also Ubuntu 14.04, but running on x86-64, the
commands executed with no errors. Both platforms have the same git
version (dpkg -l | grep git)
I checked online for an explanation. Found this:
http://askubuntu.com/questions/186847/error-gnutls-handshake-falied-when-connecting-to-https-servers
According to that, Gnu TLS may have some issues when proxies
(firewalls?) are present on the network path to the repositories. The
recommended solution is to rebuild git using OpenSSL instead of TLS. I
tried it and got to a different error ("Unknown SSL protocol error").
Can you please fix git to make it work correctly?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1397685/+subscriptions
More information about the foundations-bugs
mailing list