When a desktop application or background system service encounters an unhandled exception or crashes in Ubuntu Linux, the built-in error reporting framework—managed by the apport service—generates a diagnostic crash dump. By default, Ubuntu alerts you with a pop-up dialogue stating “System program problem detected” and prompts you to send an error report to Canonical developers. Understanding how to manage these reporting settings allows you to contribute to open-source software quality or eliminate repetitive crash dialogues on production workstations.
How Apport and Problem Reporting Work in Ubuntu
Problem reporting in Ubuntu handles application failures through structured diagnostic pipelines:
- Crash Data Collection: When a process terminates abruptly, Apport intercepts the core dump and records memory registers, package version numbers, and system architecture details inside
/var/crash/. - Confidentiality Safeguards: Diagnostic crash reports are scrubbed of personal documents before submission, focusing purely on stack traces and library dependencies.
- Developer Triage: Submitted crash logs help Canonical engineers and Ubuntu package maintainers identify and fix upstream bugs in official software repositories.
Configuring Problem Reporting in Ubuntu Settings
You can adjust error reporting preferences directly through the graphical GNOME Settings app:
- Open Settings from your Ubuntu application menu or quick settings shade.
- In the left-hand navigation pane, click on Privacy & Security (or Privacy on older releases).
- Click on Problem Reporting.
- Choose your preferred operating behaviour:
- Automatic: Sends anonymous technical reports silently in the background whenever an unhandled crash occurs, keeping your workflow uninterrupted.
- Manual: Prompts you with an informative pop-up dialogue whenever an error occurs, allowing you to review package details before approving transmission.
- Never: Disables error transmission completely, ensuring no crash statistics leave your local machine.
Clearing Lingering Crash Reports from Disk
If you repeatedly see the “System program problem detected” prompt upon logging into Ubuntu, an unresolved historical crash dump is likely lingering inside your system crash directory:
- Press
Ctrl + Alt + Tto open the terminal. - List existing crash report files:
ls -lh /var/crash/ - To clear all old crash files and silence redundant login warnings, run:
sudo rm /var/crash/* - Type your sudo administrative password and press
Enter. The historical crash notices will clear immediately.
Disabling the Apport Service via Terminal
For dedicated home servers or developer testbeds where you prefer to turn off Apport entirely:
- Open the Apport configuration file in a text editor:
sudo nano /etc/default/apport - Locate the line reading
enabled=1and change it toenabled=0. - Press
Ctrl + O, thenEnterto save, followed byCtrl + Xto exit. - Stop the active service immediately:
sudo systemctl stop apport.service