envdir command not found

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

Introduction

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

envdir: command not found

or when using sudo you get the following error message

sudo: envdir: command not found

Solutions to envdir: command not found

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

In Ubuntu envdir is provided by daemontools package.

daemontools is:

supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.

multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.

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

sudo apt-get -y install daemontools

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

You can also use apt command to install daemontools.

sudo apt -y install daemontools

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

sudo aptitude install daemontools

Summary

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