System program problem detected in Ubuntu

It’s a quite common problem we face in Ubuntu. Sometimes a program does not run in the proper way and crashes.

We don’t see immediately what are the repercussions.

After some time, a window pops up suddenly. It tells us “System program problem detected”. The window gives us two options – either we can cancel it, or we can report it to Ubuntu.

Whatever actions we take, this message persists, and keeps coming persistently.

What is the solution?

Open your terminal and issue the below command:

sudo rm /var/crash/*

It will clear all the ‘crashes’ that took place before.

Let me show you, before issuing this command, I also had had some same problems:

ss@ss-desktop:~$ cd /var/crash/
ss@ss-desktop:/var/crash$ ls
_usr_bin_gnome-shell.123.crash _usr_bin_Xwayland.123.crash
_usr_bin_gnome-shell.123.upload _usr_bin_Xwayland.123.upload
_usr_bin_gnome-shell.123.uploaded _usr_bin_Xwayland.123.uploaded
ss@ss-desktop:/var/crash$ sudo rm /var/crash/*
[sudo] password for ss:
ss@ss-desktop:/var/crash$ ls
ss@ss-desktop:/var/crash$

However, now I do not get that message any more.