demandoc command not found

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

Introduction

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

demandoc: command not found

or when using sudo you get the following error message

sudo: demandoc: command not found

Solutions to demandoc: command not found

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

In Ubuntu demandoc 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 demandoc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.