mwhatis command not found

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

Introduction

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

mwhatis: command not found

or when using sudo you get the following error message

sudo: mwhatis: command not found

Solutions to mwhatis: command not found

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

In Ubuntu mwhatis is provided by mandoc package.

mandoc is:

mandoc is a suite of tools compiling mdoc, the roff macro language of choice for BSD manual pages, and man, the predominant historical language for UNIX manuals. It is small, ISO C, ISC-licensed, and quite fast. The main component of the toolset is the mandoc utility program, based on the libmandoc validating compiler, to format output for UNIX terminals (with support for wide-character locales), XHTML, HTML, PostScript, and PDF.

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

sudo apt-get -y install mandoc

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

You can also use apt command to install mandoc.

sudo apt -y install mandoc

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

sudo aptitude install mandoc

Summary

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