Using curl to generate gnutls_ Handshake() failed: error in the pull function or gnutls recv error: error in the pull function

The problem
System: Ubuntu 16.04 LTS (amd64)

sudo apt-get install git
sudo apt-get install curl

Then you want to download the REPo tool:

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

In the execution of curl https://storage.googleapis.com/git-repo-downloads/repo & gt; makes it possible for gnutls_handshake() to fail: Error in the pull function Failed to connect to storage.googleapis.com port 443: Connection refused.
(One download was successful, the rest were unsuccessful)
To solve
sudo apt-get install libcurl4-openssl-dev
libcurl4-gnutls-dev These two bags are in conflict with each other, who will take off the other one first?Curl has libcurl4-gnutls-dev, which is the default, but we need libcurl4-openssl-dev, because it’s more useful and has better HTTPS support.


Read More: