oomctl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
oomctl: command not found
or when using sudo you get the following error message
sudo: oomctl: command not found
Solutions to oomctl: command not found
How To Fix oomctl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu oomctl is provided by systemd-oomd package.
systemd-oomd is:
systemd-oomd is a system service that uses cgroups-v2 and pressure stall information (PSI) to monitor and take action on processes before an OOM occurs in kernel space.
To fix this problem, we can install more using the command below.
sudo apt-get -y install systemd-oomd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install systemd-oomd.
sudo apt -y install systemd-oomd
Or if you have aptitude installed you can use the following command.
sudo aptitude install systemd-oomd
Summary
In this tutorial we learn how to fix oomctl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.