mgetty command not found

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

Introduction

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

mgetty: command not found

or when using sudo you get the following error message

sudo: mgetty: command not found

Solutions to mgetty: command not found

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

In Ubuntu mgetty is provided by mgetty package.

mgetty is:

Mgetty is a versatile program to handle all aspects of a modem under Unix.

The program ‘mgetty’ allows you to use a modem for handling external logins, receiving faxes and using the modem as a answering machine without interfering with outgoing calls.

This package includes basic modem data capabilities. Install mgetty-fax to get the additional functionality for fax. Install mgetty-voice to get the functionality to operate voice modems.

Mgetty is also configurable to select programs other than login for special connections (eg: uucico, fido or other programs) depending on the login userid. It also supports caller-id if the modem and phone line supply it, and can deny connections based on originating telephone number.

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

sudo apt-get -y install mgetty

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

You can also use apt command to install mgetty.

sudo apt -y install mgetty

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

sudo aptitude install mgetty

Summary

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