gnuhtml2latex command not found

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

Introduction

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

gnuhtml2latex: command not found

or when using sudo you get the following error message

sudo: gnuhtml2latex: command not found

Solutions to gnuhtml2latex: command not found

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

In Ubuntu gnuhtml2latex is provided by gnuhtml2latex package.

gnuhtml2latex is:

gnuhtml2latex is a Perl script that converts HTML files to LaTeX files. It takes list of .html files as arguments and make .tex ones. Can also convert html stdin to latex stdout.

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

sudo apt-get -y install gnuhtml2latex

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

You can also use apt command to install gnuhtml2latex.

sudo apt -y install gnuhtml2latex

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

sudo aptitude install gnuhtml2latex

Summary

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