wget command not found

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

Introduction

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

wget: command not found

or when using sudo you get the following error message

sudo: wget: command not found

Solutions to wget: command not found

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

In Ubuntu wget is provided by wget package.

wget is:

Wget is a network utility to retrieve files from the web using HTTP(S) and FTP, the two most widely used internet protocols. It works non-interactively, so it will work in the background, after having logged off. The program supports recursive retrieval of web-authoring pages as well as FTP sites – you can use Wget to make mirrors of archives and home pages or to travel the web like a WWW robot.

Wget works particularly well with slow or unstable connections by continuing to retrieve a document until the document is fully downloaded. Re-getting files from where it left off works on servers (both HTTP and FTP) that support it. Both HTTP and FTP retrievals can be time stamped, so Wget can see if the remote file has changed since the last retrieval and automatically retrieve the new version if it has.

Wget supports proxy servers; this can lighten the network load, speed up retrieval, and provide access behind firewalls.

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

sudo apt-get -y install wget

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

You can also use apt command to install wget.

sudo apt -y install wget

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

sudo aptitude install wget

Summary

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