html2text command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
html2text: command not found
or when using sudo you get the following error message
sudo: html2text: command not found
Solutions to html2text: command not found
How To Fix html2text: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu html2text is provided by html2text package.
html2text is:
html2text is a converter from HTML to plain text.
html2text reads HTML documents supplied in the command line (or from standard input), converts each of them into a stream of plain text characters and writes output to the file or the terminal.
Debian version also can recognize encoding of documents, do on-fly input and output recoding.
html2text was written because the author wasn’t happy with the output of “lynx -dump” and so he wrote something better.
To fix this problem, we can install more using the command below.
sudo apt-get -y install html2text
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install html2text.
sudo apt -y install html2text
Or if you have aptitude installed you can use the following command.
sudo aptitude install html2text
Summary
In this tutorial we learn how to fix html2text command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.