detachtty command not found

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

Introduction

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

detachtty: command not found

or when using sudo you get the following error message

sudo: detachtty: command not found

Solutions to detachtty: command not found

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

In Ubuntu detachtty is provided by detachtty package.

detachtty is:

Detachtty lets you run interactive programs non-interactively, and connect to them over the network when you do need to interact with them. It is somewhat similar to screen, but it is less feature-rich, therefore lighter and with less dependencies. It allows one to connect to programs running on remote hosts by mean of secure SSH connections.

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

sudo apt-get -y install detachtty

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

You can also use apt command to install detachtty.

sudo apt -y install detachtty

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

sudo aptitude install detachtty

Summary

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