Instructions for installing cURL on Ubuntu Linux

I. Overview

cURL is a computer software project that provides libraries and command-line tools for transferring data using a variety of protocols. It was first released in 1997. It stands for “Client URL”. The original author and lead developer is Swedish developer Daniel Stenberg.

cURL uses many different support protocols such as: HTTP, HTTPS, FTPS, …

And now most websites using WordPress source code use this tool to communicate with WordPress.org and with many other websites on the internet.

However, by default Ubuntu does not have a built-in cURL, so when we have just installed the Ubuntu server and installed some software through cURL, it will not work. For example, if you need to install CyberPanel , you will get an error as shown below.

Error: Package 'curl' has no installation candidate.
Error: Package ‘curl’ has no installation candidate.

So in this article, I will help you install cURL on Ubuntu Linux.

II. Instructions for installing cURL on Ubuntu Linux

To install cURL on Ubuntu we go through the following 2 steps.

Step 1: SSH into your Ubuntu server

To install cURL on Ubuntu, we first need to SSH or access your VPS or server with  root privileges  first. If you do not know how to SSH into your VPS or Server , you can refer to the following tutorial:

After successfully SSHing , we continue with step 2 to execute the cURL installation commands on Ubuntu.

Step 2: Commands to install cURL on Ubuntu

We execute the following two commands in order:

sudo apt update && sudo apt upgrade 
sudo apt install curl

Explanation of the two commands above:

  • Command 1: Update our Ubuntu server.
  • Command 2: Install the package curlonto the Ubuntu server.

Below is the image when we run these two commands.

how-to-install-cai-dat-curl-tren-ubuntu-linux
  • Command 1: Update our Ubuntu server.
how-to-install-cai-dat-curl-tren-ubuntu-linux
  • Command 2: Install the package curlonto the Ubuntu server.

During the installation process, select Y and Enter to continue.

Wait a moment for the installation to complete, we can use the following command to check the version of cURL that has just been installed.

 

curl --version

At this point, the installation of cURL on our Ubuntu is complete. And you can completely retry the previous operation when you get a cURL missing error on this server.


Support 24/24h with coupon code: 1DOLLAROFF 10% discount. Click now! 👆
On this page