How To Install apport on Ubuntu 20.04
Introduction
In this tutorial we learn how to install apport
on Ubuntu 20.04.
What is apport
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). Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: apport Architecture: all Version: 2.20.11-0ubuntu27 Priority: optional Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 776 Provides: core-dump-handler Depends: python3, python3-apport (>= 2.20.11-0ubuntu27), lsb-base (>= 3.0-6), python3-gi, gir1.2-glib-2.0 (>= 1.29.17) Recommends: apport-symptoms, python3-systemd Suggests: apport-gtk | apport-kde, policykit-1 Conflicts: core-dump-handler Breaks: python-apport (« 2.2-0ubuntu1) Replaces: core-dump-handler, python-apport (« 2.2-0ubuntu1) Filename: pool/main/a/apport/apport_2.20.11-0ubuntu27_all.deb Size: 128052 MD5sum: 928878985b4ba22b16c0732a42e05bce SHA1: 1a7a2d8502985889d9a1dc5154829bc3efd43848 SHA256: 612dd8cdbd977cfbf82ec4766721b5d3b5c9362c56c488f7c2c1b3e49c6f50f9 Homepage: https://wiki.ubuntu.com/Apport Description-en: automatically generate crash reports for debugging 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). Task: server, ubuntu-desktop-minimal, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install apport
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install apport Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install apport
using apt-get
by running the following command:
sudo apt-get -y install apport
Install apport Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install apport
using apt
by running the following command:
sudo apt -y install apport
Install apport Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install apport
using aptitude
by running the following command:
sudo aptitude -y install apport
How To Uninstall apport on Ubuntu 20.04
To uninstall only the apport
package we can use the following command:
sudo apt-get remove apport
Uninstall apport And Its Dependencies
To uninstall apport
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove apport
Remove apport Configurations and Data
To remove apport
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge apport
Remove apport configuration, data, and all of its dependencies
We can use the following command to remove apport
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge apport
References
Summary
In this tutorial we learn how to install apport
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.