aideinit command not found

In this troubleshooting guide we learn how to fix aideinit command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

aideinit: command not found

or when using sudo you get the following error message

sudo: aideinit: command not found

Solutions to aideinit: command not found

How To Fix aideinit: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aideinit is provided by aide-common package.

aide-common is:

AIDE is an intrusion detection system that detects changes to files on the local system. It creates a database from the regular expression rules that it finds from the config file. Once this database is initialized it can be used to verify the integrity of the files. It has several message digest algorithms (md5, sha1, rmd160, tiger, haval, etc.) that are used to check the integrity of the file. More algorithms can be added with relative ease. All of the usual file attributes can also be checked for inconsistencies.

This package contains base and configuration files that are needed to run the actual binaries.

You will almost certainly want to tweak the configuration file in /etc/aide/aide.conf or drop your own config snippets into /etc/aide/aide.conf.d.

To fix this problem, we can install more using the command below.

sudo apt-get -y install aide-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install aide-common.

sudo apt -y install aide-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install aide-common

Summary

In this tutorial we learn how to fix aideinit command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.