db2pdf command not found

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

Introduction

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

db2pdf: command not found

or when using sudo you get the following error message

sudo: db2pdf: command not found

Solutions to db2pdf: command not found

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

In Ubuntu db2pdf is provided by docbook-utils package.

docbook-utils is:

The docbook-utils is a set of a few small programs intended to ease everyday use of technical documentation software and more generally use of SGML and XML.

Tasks they currently accomplish are:

  • jw: convert DocBook files to other formats (HTML, RTF, Postscript, PDF).
  • sgmldiff: detect the differences in markup between two SGML files.
  • docbook2man: converts a DocBook refentry to a man page.

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

sudo apt-get -y install docbook-utils

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

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

sudo apt -y install docbook-utils

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

sudo aptitude install docbook-utils

Summary

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