debmake command not found

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

Introduction

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

debmake: command not found

or when using sudo you get the following error message

sudo: debmake: command not found

Solutions to debmake: command not found

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

In Ubuntu debmake is provided by debmake package.

debmake is:

This package helps you to convert an upstream source package (or VCS contents) into the Debian package by adding files required for the Debian source package. The generated debian/rules file uses the new dh command syntax from the debhelper (>=11~) package.

The debmake command invoked in the upstream source tree without any option can generate files which is good enough to create a single arch=any Debian binary package for local use without touching them. The generated files should be edited to make it conform to the Debian policy if the package is to be uploaded to the Debian archive. By adding few options, this command can generate template files for the arbitrary combination of the multi-binary and multi-arch package, etc. This includes making of the rules file for the -dbg package and the control file for the multiarch library package.

This debmake command also scans copyright and license texts in the source files to help crafting the proper DEP-5 compatible debian/copyright file.

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

sudo apt-get -y install debmake

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

You can also use apt command to install debmake.

sudo apt -y install debmake

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

sudo aptitude install debmake

Summary

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