dh_installdocs command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_installdocs: command not found
or when using sudo you get the following error message
sudo: dh_installdocs: command not found
Solutions to dh_installdocs: command not found
How To Fix dh_installdocs: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_installdocs is provided by debhelper package.
debhelper is:
A collection of programs that can be used in a debian/rules file to automate common tasks related to building Debian packages. Programs are included to install various files into your package, compress files, fix file permissions, integrate your package with the Debian menu system, debconf, doc-base, etc. Most Debian packages use debhelper as part of their build process.
To fix this problem, we can install more using the command below.
sudo apt-get -y install debhelper
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install debhelper.
sudo apt -y install debhelper
Or if you have aptitude installed you can use the following command.
sudo aptitude install debhelper
Summary
In this tutorial we learn how to fix dh_installdocs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.