dh_apport command not found

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

Introduction

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

dh_apport: command not found

or when using sudo you get the following error message

sudo: dh_apport: command not found

Solutions to dh_apport: command not found

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

In Ubuntu dh_apport is provided by dh-apport package.

dh-apport is:

apport automatically collects data from crashed processes and compiles a problem report in /var/crash/. This utilizes the crashdump helper hook provided by the Ubuntu kernel.

This package provides a debhelper extension to make it easier for other packages to include apport hooks.

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

sudo apt-get -y install dh-apport

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

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

sudo apt -y install dh-apport

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

sudo aptitude install dh-apport

Summary

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