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
curl > ~/bin/repo
chmod a+x ~/bin/repo

In the execution of curl & gt; makes it possible for gnutls_handshake() to fail: Error in the pull function Failed to connect to 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: