chkwtmp command not found

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

Introduction

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

chkwtmp: command not found

or when using sudo you get the following error message

sudo: chkwtmp: command not found

Solutions to chkwtmp: command not found

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

In Ubuntu chkwtmp 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 chkwtmp command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.