rstcheck command not found

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

Introduction

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

rstcheck: command not found

or when using sudo you get the following error message

sudo: rstcheck: command not found

Solutions to rstcheck: command not found

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

In Ubuntu rstcheck is provided by rstcheck package.

rstcheck is:

rstcheck validates the syntax of reStructuredText documents. Unlike other validators, it will also verify syntax correctness in nested code blocks for a variety of languages:

  • Bash shell scripts
  • Doctest
  • C (C99)
  • C++ (C++11)
  • JSON
  • XML
  • Python
  • reStructuredText

rstcheck can also validate Sphinx documentation files if Sphinx is installed.

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

sudo apt-get -y install rstcheck

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

You can also use apt command to install rstcheck.

sudo apt -y install rstcheck

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

sudo aptitude install rstcheck

Summary

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