markdown2 command not found

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

Introduction

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

markdown2: command not found

or when using sudo you get the following error message

sudo: markdown2: command not found

Solutions to markdown2: command not found

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

In Ubuntu markdown2 is provided by python3-markdown2 package.

python3-markdown2 is:

Markdown is a text-to-HTML filter; it translates an easy-to-read / easy-to-write structured text format into HTML. Markdown’s text format is most similar to that of plain text email, and supports features such as headers, emphasis, code blocks, blockquotes, and links.

This is a fast and complete Python3 implementation of the Markdown spec.

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

sudo apt-get -y install python3-markdown2

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

You can also use apt command to install python3-markdown2.

sudo apt -y install python3-markdown2

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

sudo aptitude install python3-markdown2

Summary

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