In Ubuntu 18.04 and up if you try to follow the instructions then you get an error:
sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl3-gnutls is already the newest version (7.58.0-2ubuntu3.8).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcurl3 : Conflicts: libcurl4 but 7.58.0-2ubuntu3.8 is to be installed
libcurl4 : Conflicts: libcurl3 but 7.58.0-2ubuntu2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
sudo apt-get install libcurl4 libcurl3-gnutls libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl3-gnutls is already the newest version (7.58.0-2ubuntu3.8).
libcurl4 is already the newest version (7.58.0-2ubuntu3.8).
Suggested packages:
libcurl4-doc libidn11-dev libkrb5-dev librtmp-dev libssh2-1-dev libssl-dev
The following packages will be REMOVED:
libssl1.0-dev
The following NEW packages will be installed:
libcurl4-openssl-dev
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/294 kB of archives.
After this operation, 5,848 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 334665 files and directories currently installed.)
Removing libssl1.0-dev:amd64 (1.0.2n-1ubuntu5.3) ...
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 334580 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.58.0-2ubuntu3.8_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.8) ...
Setting up libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.8) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
And you get
Installing curb 0.9.10 with native extensions
Bundle updated!
In Ubuntu 18.04 and up if you try to follow the instructions then you get an error:
The fix is to update libcurl3 to 4
So you get:
sudo apt-get install libcurl4 libcurl3-gnutls libcurl4-openssl-dev
And you get