sha256 command not found

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

Introduction

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

sha256: command not found

or when using sudo you get the following error message

sudo: sha256: command not found

Solutions to sha256: command not found

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

In Ubuntu sha256 is provided by hashalot package.

hashalot is:

This program will read a passphrase from standard input and print a binary (not printable) hash to standard output. The output is suitable for use as an encryption key.

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

sudo apt-get -y install hashalot

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

You can also use apt command to install hashalot.

sudo apt -y install hashalot

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

sudo aptitude install hashalot

Summary

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