webtidy command not found

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

Introduction

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

webtidy: command not found

or when using sudo you get the following error message

sudo: webtidy: command not found

Solutions to webtidy: command not found

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

In Ubuntu webtidy is provided by libhtml-tidy-perl package.

libhtml-tidy-perl is:

HTML::Tidy is a Perl module useful for performing cleanup and providing basic validation of input. It is based on Perl bindings to the HTML Tidy Project, also known as libtidy; for details, see: URL:http://tidy.sourceforge.net/.

This module is intended to replace HTML::Lint and includes documentation for easing the migration from that module.

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

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

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

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

sudo apt -y install libhtml-tidy-perl

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

sudo aptitude install libhtml-tidy-perl

Summary

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