fetchmail command not found

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

Introduction

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

fetchmail: command not found

or when using sudo you get the following error message

sudo: fetchmail: command not found

Solutions to fetchmail: command not found

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

In Ubuntu fetchmail is provided by fetchmail package.

fetchmail is:

fetchmail is a free, full-featured, robust, and well-documented remote mail retrieval and forwarding utility intended to be used over on-demand TCP/IP links (such as SLIP or PPP connections). It retrieves mail from remote mail servers and forwards it to your local (client) machine’s delivery system, so it can then be read by normal mail user agents such as mutt, elm, pine, (x)emacs/gnus, or mailx. The fetchmailconf package includes an interactive GUI configurator suitable for end-users.

Kerberos V and GSSAPI are supported.

Kerberos IV, RPA, OPIE and other support for some other features are available if the package is recompiled.

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

sudo apt-get -y install fetchmail

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

You can also use apt command to install fetchmail.

sudo apt -y install fetchmail

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

sudo aptitude install fetchmail

Summary

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