chklastlog command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
chklastlog: command not found
or when using sudo you get the following error message
sudo: chklastlog: command not found
Solutions to chklastlog: command not found
How To Fix chklastlog: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu chklastlog is provided by chkrootkit package.
chkrootkit is:
The chkrootkit security scanner searches for signs that the system is infected with a ‘rootkit’. Rootkits are a form of malware that seek to exploit security flaws to grant unauthorised access to a computer or its services, generally for malicious purposes.
chkrootkit can identify signs of over 70 different rootkits (see the project’s website for a list).
Please note that an automated tool like chkrootkit can never guarantee a system is uncompromised. Nor does every report always signify a genuine problem: human judgement and further investigation will always be needed to assure the security of your system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install chkrootkit
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install chkrootkit.
sudo apt -y install chkrootkit
Or if you have aptitude installed you can use the following command.
sudo aptitude install chkrootkit
Summary
In this tutorial we learn how to fix chklastlog command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.