❤️ AZDIGI has officially updated to a new blog system. However, some posts may have incorrect or mismatched images. Please click the Report article button at the bottom of the post so AZDIGI can update as quickly as possible. Thank you!

In this article, AZDIGI will show you how to install 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, as well as the lead developer, is Swedish developer Daniel Stenberg.

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

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

However, by default, Ubuntu does not include cURL, so when we install an Ubuntu server and try to install some software using cURL, it will not work. For example, if you need to install CyberPanel, you will encounter an error as shown below.

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

Therefore, in this article, AZDIGI will guide you on how to install cURL on Ubuntu Linux.

II. How to install cURL on Ubuntu Linux

To install cURL on Ubuntu, we need to go through the following two steps.

Step 1: SSH into your Ubuntu server

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

After successfully SSH, we proceed to 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:

AZDIGI Tutorial
sudo apt update && sudo apt upgrade
sudo apt install curl
    

Explanation of the two commands above:

  • Command 1: Update the Ubuntu server.
  • Command 2: Install the curl package on the Ubuntu server.

Here are the images when we run these two commands.

how-to-install-curl-on-ubuntu-linux
  • Command 1: Update the Ubuntu server.
  • how-to-install-curl-on-ubuntu-linux
  • Command 2: Install the curl package on the Ubuntu server.
  • During the installation process, you select Y and Enter to continue.

    Please wait for a while for the installation process to complete, we can use the following command to check the version of cURL just installed.

    AZDIGI Tutorial
    curl --version
        

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

    III. Summary

    With just two simple steps, you can install cURL on Ubuntu, thereby solving many problems in installing software through cURL.

    See more useful articles about Ubuntu at the following link:

    If you need assistance, you can contact support in the ways below:

    Share:
    This article has been reviewed by AZDIGI Team

    About the author

    Thạch Phạm

    Thạch Phạm

    Đồng sáng lập và Giám đốc điều hành của AZDIGI. Có hơn 15 năm kinh nghiệm trong phổ biến kiến thức liên quan đến WordPress tại thachpham.com, phát triển website và phát triển hệ thống.

    10+ years serving 80,000+ customers

    Start your web project with AZDIGI