dumb-init command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dumb-init: command not found
or when using sudo you get the following error message
sudo: dumb-init: command not found
Solutions to dumb-init: command not found
How To Fix dumb-init: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dumb-init is provided by dumb-init package.
dumb-init is:
dumb-init is a simple process supervisor and init system designed to run as PID 1 inside minimal container environments (such as Docker).
Lightweight containers have popularized the idea of running a single process or service without normal init systems like systemd or sysvinit. However, omitting an init system often leads to incorrect handling of processes and signals, and can result in problems such as containers which can’t be gracefully stopped, or leaking containers which should have been destroyed.
dumb-init acts as PID 1 and immediately spawns your command as a child process, taking care to properly handle and forward signals as they are received.
To fix this problem, we can install more using the command below.
sudo apt-get -y install dumb-init
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install dumb-init.
sudo apt -y install dumb-init
Or if you have aptitude installed you can use the following command.
sudo aptitude install dumb-init
Summary
In this tutorial we learn how to fix dumb-init command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.