txt2html command not found

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

Introduction

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

txt2html: command not found

or when using sudo you get the following error message

sudo: txt2html: command not found

Solutions to txt2html: command not found

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

In Ubuntu txt2html is provided by txt2html package.

txt2html is:

txt2html is a Perl program that converts plain text to HTML.

It supports headings, lists, simple character markup, and hyperlinking, and is highly customizable. It recognizes some of the apparent structure of the source document (mostly whitespace and typographic layout), and attempts to mark that structure explicitly using HTML.

The purpose for this tool is to provide an easier way of converting existing text documents to HTML format, giving something nicer than just whapping the text into a big PRE block. txt2html can also be used to aid in writing new HTML documents, but there are probably better ways of doing that.

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

sudo apt-get -y install txt2html

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

You can also use apt command to install txt2html.

sudo apt -y install txt2html

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

sudo aptitude install txt2html

Summary

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