Git: gnutls_handshake() failed: Error in the pull function
I resolved this problem by-
apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
My server is behind a proxy and I got the same error, I solved this modifying ~/.gitconfig adding the proxy conf:
[http]
proxy = http://xxx.xxx.xxx.xxx:pppp