apport-retrace command not found

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

Introduction

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

apport-retrace: command not found

or when using sudo you get the following error message

sudo: apport-retrace: command not found

Solutions to apport-retrace: command not found

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

In Ubuntu apport-retrace is provided by apport-retrace package.

apport-retrace is:

apport-retrace recombines an Apport crash report (either a file or a Launchpad bug) and debug symbol packages (.ddebs) into fully symbolic stack traces. This can optionally use a sandbox for installing debug symbol packages and doing the processing, so that entire process of retracing crashes can happen with normal user privileges without changing the system.

You need to install gdb-multiarch if you want to be able to retrace crash reports which happened on a different architecture than the one you run apport-retrace on.

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

sudo apt-get -y install apport-retrace

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

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

sudo apt -y install apport-retrace

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

sudo aptitude install apport-retrace

Summary

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