docbook-to-man command not found

In this troubleshooting guide we learn how to fix docbook-to-man command not found error message

Introduction

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

docbook-to-man: command not found

or when using sudo you get the following error message

sudo: docbook-to-man: command not found

Solutions to docbook-to-man: command not found

How To Fix docbook-to-man: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu docbook-to-man is provided by docbook-to-man package.

docbook-to-man is:

docbook-to-man is a batch converter that transforms UNIX-style manpages from the DocBook SGML format into nroff/troff man macros.

This is not the original version by Fred Dalrymple, but one with the modifications by David Bolen.

docbook-to-man lacks support for internationalization and utf-8. Other tools like docbook2man or docbook-xml with xsltproc are better suited for new projects.

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

sudo apt-get -y install docbook-to-man

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

You can also use apt command to install docbook-to-man.

sudo apt -y install docbook-to-man

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

sudo aptitude install docbook-to-man

Summary

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