curl command not found

In this troubleshooting guide we learn how to fix curl command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

curl: command not found

or when using sudo you get the following error message

sudo: curl: command not found

Solutions to curl: command not found

How To Fix curl: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu curl is provided by curl package.

curl is:

curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP.

curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks.

To fix this problem, we can install more using the command below.

sudo apt-get -y install curl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install curl.

sudo apt -y install curl

Or if you have aptitude installed you can use the following command.

sudo aptitude install curl

Summary

In this tutorial we learn how to fix curl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.