html2ps command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
html2ps: command not found
or when using sudo you get the following error message
sudo: html2ps: command not found
Solutions to html2ps: command not found
How To Fix html2ps: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu html2ps is provided by html2ps package.
html2ps is:
This program converts HTML directly to PostScript. The HTML code can be retrieved from one or more URLs or local files, specified as parameters on the command line. A comprehensive level of HTML is supported, including inline images, CSS 1.0, and some features of HTML 4.0.
This is our justification for the suggests list:
We suggest ghostscript since it is required in order to output DSC compliant PS (–dsc option) and make cross references at links within the set of converted documents (–xref option).
We suggest weblint-perl because it’s the default method for checking HTML syntax (use the -c option).
We suggest texlive-base because we need TeX hyphenation pattern in order to hyphenate text (use -H option).
We suggest postscript-viewer because this package generates postscripts that can be viewed on a postscript-viewer.
We suggest xhtml2ps because it’s a interesting graphical interface for this package.
To fix this problem, we can install more using the command below.
sudo apt-get -y install html2ps
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install html2ps.
sudo apt -y install html2ps
Or if you have aptitude installed you can use the following command.
sudo aptitude install html2ps
Summary
In this tutorial we learn how to fix html2ps command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.