rungetty command not found

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

Introduction

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

rungetty: command not found

or when using sudo you get the following error message

sudo: rungetty: command not found

Solutions to rungetty: command not found

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

In Ubuntu rungetty is provided by rungetty package.

rungetty is:

rungetty might be the getty you were looking for. It is able to run any program, not just login. If a different program than login is used it usually is run as nobody:nogroup, or the user/group specified on the commandline. rungetty can even be configured to autologin, under certain circumstances. See the manual page for more information.

You have to change some lines in /etc/inittab for having any effect after installing the package. rungetty is based on mingetty and therefore not suitable for serial use.

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

sudo apt-get -y install rungetty

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

You can also use apt command to install rungetty.

sudo apt -y install rungetty

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

sudo aptitude install rungetty

Summary

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