« Back to Troubleshooting software issues

How to Disable "System program problem detected"

Screenshot of problem, with text System program problem detected

Sometimes programs crash, usually for a different variety of reasons. While it is good to do research and find the underlying cause, sometimes you simply want to disable any reporting.

Clean up /var/crash

First thing to do is check your /var/crash directory and see if there are any “crash” files. These are just normal text files and include details about a process. If you have a process crashing regularly, you most likely want to report it, so the vendor can implement a fix.

Screenshot of files in /var/crash directory

For the purpose of this article we are not going to analyze them. Instead, just delete them and proceed with the next step.

Disable Apport

Ubuntu systems use ApportExternal link for this. To get rid of any reporting popups, disable the Apport tooling:

$ sudo sed -i 's/^enabled=1/enabled=0/' /etc/default/apport
$ sudo cat /etc/default/apport 
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0

This sed command changes the enabled status (from 1 to 0), which prevents Apport from running next time.

That’s all!

Relevant commands in this article

Like to learn more about the commands that were used in this article? Have a look, for some there is also a cheat sheet available.

  • sed
  • sudo

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon