htmlclean command not found

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

Introduction

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

htmlclean: command not found

or when using sudo you get the following error message

sudo: htmlclean: command not found

Solutions to htmlclean: command not found

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

In Ubuntu htmlclean is provided by libhtml-clean-perl package.

libhtml-clean-perl is:

The HTML::Clean module encapsulates a number of HTML optimizations and cleanups. The end result is HTML that loads faster, displays properly in more browsers. Think of it as a compiler that translates HTML input into optimized machine readable code.

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

sudo apt-get -y install libhtml-clean-perl

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

You can also use apt command to install libhtml-clean-perl.

sudo apt -y install libhtml-clean-perl

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

sudo aptitude install libhtml-clean-perl

Summary

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