genhash command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
genhash: command not found
or when using sudo you get the following error message
sudo: genhash: command not found
Solutions to genhash: command not found
How To Fix genhash: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu genhash is provided by keepalived package.
keepalived is:
keepalived is used for monitoring real servers within a Linux Virtual Server (LVS) cluster. keepalived can be configured to remove real servers from the cluster pool if it stops responding, as well as send a notification email to make the admin aware of the service failure.
In addition, keepalived implements an independent Virtual Router Redundancy Protocol (VRRPv2; see rfc2338 for additional info) framework for director failover.
You need a kernel >= 2.4.28 or >= 2.6.11 for keepalived. See README.Debian for more information.
To fix this problem, we can install more using the command below.
sudo apt-get -y install keepalived
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install keepalived.
sudo apt -y install keepalived
Or if you have aptitude installed you can use the following command.
sudo aptitude install keepalived
Summary
In this tutorial we learn how to fix genhash command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.