apport-bug command not found

In this troubleshooting guide we learn how to fix apport-bug command not found error message

Introduction

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

apport-bug: command not found

or when using sudo you get the following error message

sudo: apport-bug: command not found

Solutions to apport-bug: command not found

How To Fix apport-bug: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu apport-bug is provided by apport package.

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 also provides a command line frontend for browsing and handling the crash reports. For desktops, you should consider installing the GTK+ or Qt user interface (apport-gtk or apport-kde).

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

sudo apt-get -y install apport

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

You can also use apt command to install apport.

sudo apt -y install apport

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

sudo aptitude install apport

Summary

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