rst2pdf command not found

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

Introduction

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

rst2pdf: command not found

or when using sudo you get the following error message

sudo: rst2pdf: command not found

Solutions to rst2pdf: command not found

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

In Ubuntu rst2pdf is provided by rst2pdf package.

rst2pdf is:

The usual way of creating PDF files from reStructuredText is by going through LaTeX. This tool provides an alternative by producing PDF directly using the ReportLab library.

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

sudo apt-get -y install rst2pdf

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

You can also use apt command to install rst2pdf.

sudo apt -y install rst2pdf

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

sudo aptitude install rst2pdf

Summary

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