Open In App

How to Install apport-gtk package on Ubuntu?

Improve
Improve
Like Article
Like
Save
Share
Report

Apport automatically gathers data from crashed processes and stores it in /var/crash/ as a bug report. This is a command-line interface for reporting crashes to developers. It may also be used to report issues in running packages or processes. If symptom scripts are available, they may also be invoked with the name of a symptom or simply -f to display a list of known symptoms. When no other alternatives are available, it processes the pending crash reports and offers to report them one by one. You may also see the whole report to see what information is supplied to software developers. When invoked with only one parameter and no options, apport-CLI employs certain heuristics to determine “what you mean” and files a problem against the specified symptom name, package name, program path, or PID. If the parameter is a .crash or .apport file, the stored problem report is uploaded to the bug tracking system.

Apport automatically gathers data from crashed processes and stores it in /var/crash/ as a bug report. The crash dump assistance hook provided by the Ubuntu kernel is used. This package has a GTK+ UI for reading and interacting with crash reports. apport automatically gathers data from crashed processes and stores it in /var/crash/ as a bug report. The crash dump assistance hook provided by the Ubuntu kernel is used. This package has a GTK+ UI for reading and interacting with crash reports.

How to install apport-gtk in Ubuntu

On Ubuntu 20.04, there are three options for installing apport-gtk. Apt-get, apt, and aptitude are all available. Each strategy of installation will be described in detail in the following sections. You may select any of them.

  • Using apt-get to install  
  • Using aptitude to install  
  • Using apt to install  

Method 1: Using the apt-get command

Using the following command, update the apt database using apt-get.

sudo apt-get update

Updating-apt-database

 

After upgrading the apt database, we can use apt-get to install apport-gtk by performing the following command:

sudo apt-get -y install apport-gtk

Using-apt-get-installing-apport-gtk

 

Method 2: Using apt. The apt database will be updated with the command below.

sudo apt update

Updating-apt-database

 

After upgrading the apt database, we can use apt to install apport-gtk by performing the following command:

 sudo apt -y install apport-gtk

Installing-apport-gtk

 

Method 3: Using aptitude. If you want to use this method, you may need to install aptitude first because it is not normally installed by default on Ubuntu. Use the following command to update the apt database with aptitude.

sudo aptitude update

Updating-aptitude

 

After upgrading the apt database, we can use aptitude to install apport-gtk by performing the following command:

sudo aptitude -y install apport-gtk

Using-aptitude-Installing-apport-gtk

 

Usage of Apport

  • An issue report is automatically compiled by apport in /var/crash/ using information from crashed processes. This is a command-line interface for notifying the developers of those crashes. Additionally, it may be used to file bug reports for active processes or packages.
  • If there are symptom scripts available, the function can also be used with simply the -f flag to show a list of recognized symptoms.
  • It examines the pending crash reports and offers to report them one at a time when it is invoked without any other choices. To examine what is forwarded to the program developers, you may also see the whole report.

-f, –file

Report an issue that isn’t a crash. It displays a list of the available symptoms if none of the following parameters are specified: —package, —a symptom, or —PID. If none are accessible, it terminates with a warning. In order to provide the developers with crucial context, this will automatically attach information about your operating system, the package version, etc. to the bug report.

-s  –symptom

When used in the —file-bug mode, be sure to provide the symptom to report.

-p  –package

Specify the package to report the issue against when using the —file-bug method.


Last Updated : 14 Jul, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads