Command ‘curl’ not found on Ubuntu 20.04

The following error message may appear on your terminal hinting the unavailability of the curl command:

Command 'curl' not found, but can be installed with:
OR
bash: /usr/bin/curl: No such file or directory
  1. To resolve this issue first try to install the curl command. First and the most obvious installation method is to execute the following command:
    $ sudo apt install curl
    
  2. In case the curl command is still not found check whether the curl binary executable exists:
    $ ls  /usr/bin/curl
    /usr/bin/curl
    

    Check if you can execute the command using a full path:

    $ /usr/bin/curl --version
    curl 7.66.0 (x86_64-pc-linux-gnu) libcurl/7.66.0 OpenSSL/1.1.1d zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
    
  3. Next, ensure the path to the curl is a part of your executable shell path:
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    
  4. Lastly, you may try to reinstall the curl command:
    $ sudo dpkg-reconfigure curl
  • 85 Users Found This Useful
Was this answer helpful?

Related Articles

Advantages of ZFS

ZFS as a rather new filesystem offers various advantages in comparison to regular filesystems...

Analysing log files in Windows and Linux

Everyone knows the scenario, you want to analyze an issue of your server or local computer but...

Can i use TUN/TAP ?

Yes our VPS are KVM or Vmware based and you have your own kernel so using TUN/TAP is no problem.

Changing the Windows Administrator password – The easy way

Today we are going to show you how to change your Windows Administrator password the easy...

Comparison of administration panels: cPanel vs. Plesk vs. Webmin

We are often asked which panel we would recommend. Since there is a variety of different panels...