heimdal-history command not found

In this troubleshooting guide we learn how to fix heimdal-history command not found error message

Introduction

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

heimdal-history: command not found

or when using sudo you get the following error message

sudo: heimdal-history: command not found

Solutions to heimdal-history: command not found

How To Fix heimdal-history: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu heimdal-history is provided by krb5-strength package.

krb5-strength is:

krb5-strength provides a password quality plugin for the MIT Kerberos KDC (specifically the kadmind server), an external password quality program for use with Heimdal, and a per-principal password history implementation for Heimdal. Passwords can be tested with CrackLib, checked against a CDB or SQLite database of known weak passwords with some transformations, checked for length, checked for non-printable or non-ASCII characters that may be difficult to enter reproducibly, required to contain particular character classes, or any combination of these tests.

No dictionary is shipped with this package. A CrackLib dictionary can be created with the tools in cracklib-runtime, a CDB or SQLite database can be created from a password list (obtained separately) using the tools included in this package, or both.

The recommended packages are needed to generate CDB or SQLite databases and for the password history implementation for Heimdal.

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

sudo apt-get -y install krb5-strength

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

You can also use apt command to install krb5-strength.

sudo apt -y install krb5-strength

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

sudo aptitude install krb5-strength

Summary

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