shutdown command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
shutdown: command not found
or when using sudo you get the following error message
sudo: shutdown: command not found
Solutions to shutdown: command not found
How To Fix shutdown: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu shutdown is provided by finit-sysv package.
finit-sysv is:
Finit is a simple alternative to SysV init and systemd, reverse engineered from the EeePC fastinit ten years ago by Claudio Matsuoka - “gaps filled with frog DNA …”
This package provides /sbin/init, that boots your system and starts finit.
To fix this problem, we can install more using the command below.
sudo apt-get -y install finit-sysv
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install finit-sysv.
sudo apt -y install finit-sysv
Or if you have aptitude installed you can use the following command.
sudo aptitude install finit-sysv
Summary
In this tutorial we learn how to fix shutdown command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.