src2man command not found

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

Introduction

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

src2man: command not found

or when using sudo you get the following error message

sudo: src2man: command not found

Solutions to src2man: command not found

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

In Ubuntu src2man is provided by txt2man package.

txt2man is:

txt2man is program that converts simple texts to manpages easily. The syntax of the ASCII text should looks like the output provided by man(1) program. So, you need write a text file using a visual approach of a manpage and txt2man will convert it. The txt2man(1) manpage is short and sufficient to understand how the program works.

A command to extract comments from source code (src2man) and a command to build an indexed volume from a set of manpages (bookman) are also provided by this package.

txt2man is very useful for programmers and Debian packaging.

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

sudo apt-get -y install txt2man

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

You can also use apt command to install txt2man.

sudo apt -y install txt2man

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

sudo aptitude install txt2man

Summary

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