anacron command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
anacron: command not found
or when using sudo you get the following error message
sudo: anacron: command not found
Solutions to anacron: command not found
How To Fix anacron: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu anacron is provided by anacron package.
anacron is:
Anacron (like “anac(h)ronistic”) is a periodic command scheduler. It executes commands at intervals specified in days. Unlike cron, it does not assume that the system is running continuously. It can therefore be used to control the execution of daily, weekly, and monthly jobs (or anything with a period of n days), on systems that don’t run 24 hours a day. When installed and configured properly, Anacron will make sure that the commands are run at the specified intervals as closely as machine uptime permits.
This package is pre-configured to execute the daily jobs of the Debian system. You should install this program if your system isn’t powered on 24 hours a day to make sure the maintenance jobs of other Debian packages are executed each day.
To fix this problem, we can install more using the command below.
sudo apt-get -y install anacron
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install anacron.
sudo apt -y install anacron
Or if you have aptitude installed you can use the following command.
sudo aptitude install anacron
Summary
In this tutorial we learn how to fix anacron command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.