lynis command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lynis: command not found
or when using sudo you get the following error message
sudo: lynis: command not found
Solutions to lynis: command not found
How To Fix lynis: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lynis is provided by lynis package.
lynis is:
Lynis is an auditing tool for hardening GNU/Linux and Unix based systems. It scans the system configuration and creates an overview of system information and security issues usable by professional auditors. It can assist in automated audits.
Lynis can be used in addition to other software, like security scanners, system benchmarking and fine-tuning tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install lynis
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install lynis.
sudo apt -y install lynis
Or if you have aptitude installed you can use the following command.
sudo aptitude install lynis
Summary
In this tutorial we learn how to fix lynis command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.