How to Fix ‘System Program Problem Detected’ Loop in Ubuntu

Upon logging into the desktop or unlocking your Ubuntu session, few things are as irritating as being repeatedly greeted by the dialogue box: “System program problem detected. Do you want to report the problem now?” Even after clicking Cancel or sending the error report, the notification frequently returns on every subsequent boot.

This persistent popup is generated by Apport, Ubuntu’s default crash reporting system. Whenever an application or system service crashes, Apport writes a crash dump file to /var/crash/. If older crash reports are never cleared or if Ubuntu cannot transmit the report to Launchpad, Apport continues displaying the notification indefinitely. Follow this guide to purge orphaned crash files and configure Apport appropriately.

Remove Existing Crash Reports from the Spool Directory

The primary reason the error dialogue repeats is that Ubuntu checks /var/crash/ upon desktop initialisation. As long as any file with the .crash extension remains in this directory, the alert will trigger repeatedly regardless of whether the crash occurred weeks ago.

  1. Open the Terminal application (Ctrl + Alt + T).
  2. Inspect the existing crash reports currently logged on your system:
    ls -lh /var/crash/
  3. Delete all accumulated crash dump files from the spool directory:
    sudo rm /var/crash/*
  4. Enter your administrative password when prompted.
  5. Verify that the directory is empty by running ls /var/crash/ again.

Identify and Resolve Underlying Service Failures

If new .crash files reappear in /var/crash/ immediately after being deleted, a system daemon, background driver, or snap application is actively crashing. Identifying the offending binary allows you to resolve the root defect.

  • Inspect recent system journal entries filtered by priority:
    journalctl -p 3 -xb
  • Check for broken or partially configured APT packages:
    sudo apt update && sudo apt --fix-broken install
  • Upgrade installed software to patch known upstream stability issues:
    sudo apt upgrade -y
  • If a specific application (such as a third-party browser, extension, or kernel module) is named in the crash file, consider reinstalling or updating that specific package.

Disable Apport Notifications on Production Systems

On stable desktop installations, continuous crash report popups offer little utility to end-users because automated bug filing is often disabled for release packages. You can safely disable Apport’s automated prompt daemon without affecting system stability.

  1. Open the Apport configuration file in a terminal text editor:
    sudo nano /etc/default/apport
  2. Locate the line reading:
    enabled=1
  3. Change the value to 0:
    enabled=0
  4. Save the changes by pressing Ctrl + O, press Enter, and exit nano with Ctrl + X.
  5. Stop the active Apport systemd service immediately:
    sudo systemctl stop apport.service
  6. Disable the service from starting automatically at boot:
    sudo systemctl disable apport.service

Verify System Status and Reboot

After purging the crash spool and disabling redundant notification triggers, reboot your computer to ensure a clean desktop session.

  • Reboot the system using sudo reboot.
  • Log into your desktop environment normally.
  • Confirm that the desktop opens immediately without any crash notification dialogues appearing.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.