tc2html-toc command not found

In this troubleshooting guide we learn how to fix tc2html-toc command not found error message

Introduction

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

tc2html-toc: command not found

or when using sudo you get the following error message

sudo: tc2html-toc: command not found

Solutions to tc2html-toc: command not found

How To Fix tc2html-toc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tc2html-toc is provided by troffcvt package.

troffcvt is:

Use this package to convert manuals and manpages and other documents written using troff to more manageable formats, such as HTML, RTF, or plain text.

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

sudo apt-get -y install troffcvt

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

You can also use apt command to install troffcvt.

sudo apt -y install troffcvt

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

sudo aptitude install troffcvt

Summary

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