crypt command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
crypt: command not found
or when using sudo you get the following error message
sudo: crypt: command not found
Solutions to crypt: command not found
How To Fix crypt: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu crypt is provided by mcrypt package.
mcrypt is:
mcrypt is a crypting program, intended to be replacement for the old unix crypt(1). But it can do a lot more, since with its libmcrypt library it can encrypt and decrypt with the following algorithms: BLOWFISH, TWOFISH, DES, TripleDES, 3-WAY, SAFER-sk64, SAFER-sk128, SAFER+, OKI97, GOST, RC2, RC6, MARS, IDEA, RIJNDAEL-128, RIJNDAEL-192, SERPENT, RIJNDAEL-256, CAST-128 (known as CAST5), CAST-256, ARCFOUR, ENIGMA, PANAMA, XTEA and WAKE.
Please note that this package is buggy and unmaintained by the upstream authors. If you can, please look for other implementations (openssl, gnutls, gnupg).
To fix this problem, we can install more using the command below.
sudo apt-get -y install mcrypt
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mcrypt.
sudo apt -y install mcrypt
Or if you have aptitude installed you can use the following command.
sudo aptitude install mcrypt
Summary
In this tutorial we learn how to fix crypt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.