buildhash command not found

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

Introduction

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

buildhash: command not found

or when using sudo you get the following error message

sudo: buildhash: command not found

Solutions to buildhash: command not found

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

In Ubuntu buildhash is provided by ispell package.

ispell is:

Ispell corrects spelling in plain text, LaTeX, sgml/html/xml, and nroff files. [x]Emacs and jed have nice interfaces to ispell, and ispell works from many other tools and from the command line as well.

No ispell dictionaries are included in this package; you must install at least one of them (“iamerican” is recommended by default for no good reason); install the “ispell-dictionary” package(s) for the language(s) you and your users will want to spell-check.

It’s a good idea to install “word list” package(s) for the same language(s), because they’ll be used by ispell’s (L)ookup command.

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

sudo apt-get -y install ispell

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

You can also use apt command to install ispell.

sudo apt -y install ispell

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

sudo aptitude install ispell

Summary

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