ppi2html command not found

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

Introduction

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

ppi2html: command not found

or when using sudo you get the following error message

sudo: ppi2html: command not found

Solutions to ppi2html: command not found

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

In Ubuntu ppi2html is provided by libppi-html-perl package.

libppi-html-perl is:

PPI::HTML is a Perl module which uses the PPI (a Perl Parsing Interface, see libppi-perl) module to create syntax-highlighted HTML documents from Perl code. It supports extensibility through stylesheets and provides an easy facility to change colours of your output.

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

sudo apt-get -y install libppi-html-perl

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

You can also use apt command to install libppi-html-perl.

sudo apt -y install libppi-html-perl

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

sudo aptitude install libppi-html-perl

Summary

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