hmac256 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
hmac256: command not found
or when using sudo you get the following error message
sudo: hmac256: command not found
Solutions to hmac256: command not found
How To Fix hmac256: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu hmac256 is provided by libgcrypt20-dev package.
libgcrypt20-dev is:
libgcrypt contains cryptographic functions. Many important free ciphers, hash algorithms and public key signing algorithms have been implemented:
Arcfour, Blowfish, CAST5, DES, AES, Twofish, Serpent, rfc2268 (rc2), SEED, Poly1305, Camellia, ChaCha20, IDEA, Salsa, SM4, Blake-2, CRC, MD2, MD4, MD5, RIPE-MD160, SM3, SHA-1, SHA-256, SHA-512, SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, SHAKE256, Tiger, Whirlpool, DSA, DSA2, ElGamal, RSA, ECC (Curve25519, sec256k1, GOST R 34.10-2001 and GOST R 34.10-2012, etc.)
This package contains header files and libraries for static linking.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libgcrypt20-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libgcrypt20-dev.
sudo apt -y install libgcrypt20-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libgcrypt20-dev
Summary
In this tutorial we learn how to fix hmac256 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.