dh_make command not found

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

Introduction

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

dh_make: command not found

or when using sudo you get the following error message

sudo: dh_make: command not found

Solutions to dh_make: command not found

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

In Ubuntu dh_make is provided by dh-make package.

dh-make is:

This package allows you to take a standard (or upstream) source package and convert it into a format that will allow you to build Debian packages.

After answering a few questions, dh_make will then provide a set of templates that, after some small editing, will allow you to create a Debian package.

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

sudo apt-get -y install dh-make

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

You can also use apt command to install dh-make.

sudo apt -y install dh-make

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

sudo aptitude install dh-make

Summary

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