tftp command not found

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

Introduction

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

tftp: command not found

or when using sudo you get the following error message

sudo: tftp: command not found

Solutions to tftp: command not found

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

In Ubuntu tftp is provided by tftp-hpa package.

tftp-hpa is:

Trivial File Transfer Protocol (TFTP) is a file transfer protocol, mainly to serve boot images over the network to other machines (PXE).

tftp-hpa is an enhanced version of the BSD TFTP client and server. It possesses a number of bugfixes and enhancements over the original.

This package contains the client.

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

sudo apt-get -y install tftp-hpa

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

You can also use apt command to install tftp-hpa.

sudo apt -y install tftp-hpa

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

sudo aptitude install tftp-hpa

Summary

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