mingetty command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mingetty: command not found
or when using sudo you get the following error message
sudo: mingetty: command not found
Solutions to mingetty: command not found
How To Fix mingetty: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mingetty is provided by mingetty package.
mingetty is:
Mingetty is a small, efficient, console-only getty for Linux.
“getty opens a tty port, prompts for a login name and invokes the /bin/login command. It is normally invoked by init(8).”
mingetty is a minimal getty for use on virtual consoles. Unlike the getty in the util-linux or mgetty packages, mingetty is not suitable for serial lines, which is why it’s smaller.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mingetty
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mingetty.
sudo apt -y install mingetty
Or if you have aptitude installed you can use the following command.
sudo aptitude install mingetty
Summary
In this tutorial we learn how to fix mingetty command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.