首先安装ssl
sudo apt install libssl-dev
然后手动下载安装curl使其支持 https
./configure时候注意看有没有成功
wget https://curl.haxx.se/download/curl-7.74.0.tar.gz
tar -xzvf curl-7.74.0.tar.gz
cd curl-7.74.0/
./configure --with-ssh
make
sudo make install
参考:
15.04 - curl: (1) Protocol https not supported or disabled in libcurl - Ask Ubuntu