Rebuild git with libcurl4-openssl-dev instead of gnutls.
sudo apt install build-essential fakeroot dpkg-dev
mkdir ~/git-openssl
cd ~/git-openssl
sudo apt source git
sudo apt build-dep git
This step could fail, bacause the lines of deb_src is commented off in /etc/apt/sources.list.
Un-comment those lines and run sudo apt update to fix this.
Then install libcurl4-openssl-dev.
sudo apt install libcurl4-openssl-dev
sudo dpkg-source -x git_2.17.1-1ubuntu0.9.dsc
cd git_2.17.1
Note: your version might not be the same here.
Then edit file debian/control, replace all libcurl4-gnutls-dev with libcurl4-openssl-dev. Note: there is only one place to replace on the top.
Rebuild git with
libcurl4-openssl-dev
instead ofgnutls
.This step could fail, bacause the lines of
deb_src
is commented off in/etc/apt/sources.list
.Un-comment those lines and run
sudo apt update
to fix this.Then install
libcurl4-openssl-dev
.Note: your version might not be the same here.
Then edit file
debian/control
, replace alllibcurl4-gnutls-dev
withlibcurl4-openssl-dev
.Note: there is only one place to replace on the top.
Now you can build it.