python-mkdebian command not found

In this troubleshooting guide we learn how to fix python-mkdebian command not found error message

Introduction

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

python-mkdebian: command not found

or when using sudo you get the following error message

sudo: python-mkdebian: command not found

Solutions to python-mkdebian: command not found

How To Fix python-mkdebian: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu python-mkdebian is provided by python3-distutils-extra package.

python3-distutils-extra is:

This package provides additional functions to Python’s distutils and setuptools. It allows you to easily integrate gettext, icons and GNOME documentation into your build and installation process.

It also provides an “auto” module which provides a “do what I mean” automatic build system; if you stick to the conventions, you do not need to write setup.cfg, POTFILES.in, or MANIFEST.in, and setup.py just needs to have the package metadata (such as project name and version).

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

sudo apt-get -y install python3-distutils-extra

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

You can also use apt command to install python3-distutils-extra.

sudo apt -y install python3-distutils-extra

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

sudo aptitude install python3-distutils-extra

Summary

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