cm2html command not found

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

Introduction

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

cm2html: command not found

or when using sudo you get the following error message

sudo: cm2html: command not found

Solutions to cm2html: command not found

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

In Ubuntu cm2html is provided by recommonmark-scripts package.

recommonmark-scripts is:

The recommonmark Python module allows ones to write CommonMark inside of Docutils and Sphinx projects.

This package installs various scripts to convert markdown to other formats (e.g. HTML, man, LaTeX).

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

sudo apt-get -y install recommonmark-scripts

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

You can also use apt command to install recommonmark-scripts.

sudo apt -y install recommonmark-scripts

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

sudo aptitude install recommonmark-scripts

Summary

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