dh_installdeb command not found

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

Introduction

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

dh_installdeb: command not found

or when using sudo you get the following error message

sudo: dh_installdeb: command not found

Solutions to dh_installdeb: command not found

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

In Ubuntu dh_installdeb 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_installdeb command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.