pid1 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pid1: command not found
or when using sudo you get the following error message
sudo: pid1: command not found
Solutions to pid1: command not found
How To Fix pid1: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pid1 is provided by pid1 package.
pid1 is:
Library/executable for initializing signal handlers, spawning and child process, and reaping orphan processes. These are the responsibilities that must be fulfilled by the initial process in a Unix system, and in particular comes up when running Docker containers.
This library/executable will automatically detect if it is run as some process besides PID1 and, if so, use a straightforward exec system call instead.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pid1
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pid1.
sudo apt -y install pid1
Or if you have aptitude installed you can use the following command.
sudo aptitude install pid1
Summary
In this tutorial we learn how to fix pid1 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.