s6-envdir command not found

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

Introduction

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

s6-envdir: command not found

or when using sudo you get the following error message

sudo: s6-envdir: command not found

Solutions to s6-envdir: command not found

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

In Ubuntu s6-envdir is provided by s6 package.

s6 is:

s6 is a small suite of programs for UNIX, designed to allow process supervision (a.k.a service supervision), in the line of daemontools and runit, as well as various operations on processes and daemons. It is meant to be a toolbox for low-level process and service administration, providing different sets of independent tools that can be used within or without the framework, and that can be assembled together to achieve powerful functionality with a very small amount of code.

Documentation is provided in s6-doc package.

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

sudo apt-get -y install s6

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

You can also use apt command to install s6.

sudo apt -y install s6

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

sudo aptitude install s6

Summary

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