mash command not found

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

Introduction

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

mash: command not found

or when using sudo you get the following error message

sudo: mash: command not found

Solutions to mash: command not found

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

In Ubuntu mash is provided by mash package.

mash is:

Mash uses MinHash locality-sensitive hashing to reduce large biosequences to a representative sketch and rapidly estimate pairwise distances between genomes or metagenomes. Mash sketch databases effectively delineate known species boundaries, allow construction of approximate phylogenies, and can be searched in seconds using assembled genomes or raw sequencing runs from Illumina, Pacific Biosciences, and Oxford Nanopore. For metagenomics, Mash scales to thousands of samples and can replicate Human Microbiome Project and Global Ocean Survey results in a fraction of the time.

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

sudo apt-get -y install mash

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

You can also use apt command to install mash.

sudo apt -y install mash

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

sudo aptitude install mash

Summary

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