How to disable Apport internal error reporting on Ubuntu

Question: On Ubuntu desktop, I often encounter a popup window, alerting that Ubuntu has experienced an internal error, and asking me to send an error report. This is bothering me as it keeps popping up for every application crash. How can I turn off the error reporting feature?

Ubuntu desktop comes with Apport pre-installed, which is a system that catches applications crashes, unhandled exceptions or any non-crash application bugs, and automatically generates a crash report for debugging purposes. When an application crash or bug is detected, Apport alerts user of the event by showing a popup window and asking the user to submit a crash report. You will see messages like the following.

  • "Sorry, the application XXXX has closed unexpectedly."
  • "Sorry, Ubuntu XX.XX has experienced an internal error."
  • "System program problem detected."

If application crashes are recurring, frequent error reporting alerts can be disturbing. Or you may be worried that Apport can collect and upload any sensitive information of your Ubuntu system. Whatever the reason is, you may want to disable Apport's error reporting feature.

Disable Apport Error Reporting Temporarily

If you want to disable Apport temporarily, use this command:

$ sudo service apport stop

Note that Apport will be enabled back after you boot your Ubuntu system.

Disable Apport Error Reporting Permanently

To turn off Apport permanently, edit /etc/default/apport with a text editor, and change the content to the following.


Now if you reboot your Ubuntu system, Apport will automatically be disabled.

If you think you will never use Apport, another method is to simply remove it altogether.

$ sudo apt-get purge apport
Download this article as ad-free PDF (made possible by your kind donation): 
Download PDF

Subscribe to Ask Xmodulo

Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

Leave a comment

Your email address will not be published. Required fields are marked *