dash-search command not found

In this troubleshooting guide we learn how to fix dash-search command not found error message

Introduction

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

dash-search: command not found

or when using sudo you get the following error message

sudo: dash-search: command not found

Solutions to dash-search: command not found

How To Fix dash-search: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dash-search is provided by cruft package.

cruft is:

cruft is a program to look over your system for anything that shouldn’t be there, but is; or for anything that should be there, but isn’t.

It bases most of its results on dpkg’s database, as well as a list of `extra files’ that can appear during the lifetime of various packages.

cruft is still in pre-release; your assistance in improving its accuracy and performance is appreciated.

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

sudo apt-get -y install cruft

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

You can also use apt command to install cruft.

sudo apt -y install cruft

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

sudo aptitude install cruft

Summary

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