Disable apport error message "The application has closed unexpectedly"

error

Getting frustrated with the number of Apport error messages that keep popping up, like in the image below telling you 'The application \[app\] has closed unexpectedly.'? Follow these simple steps to disable the messages.

Reading time:
1 min
  1. Open the apport configuration file

    Open up a terminal (Ctrl+Alt+t) and enter the following command:

    sudo nano /etc/default/apport
    

    You should see the contents of the file which will look like this:

    # 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=1
    
  2. Edit the file

    Using the arrows on the keyboard navigate to the end on the file and change the 1 to a 0 like below:

    enabled=0
    
  3. Save the changes

    Press Ctrl+x then hit Y followed by Enter to confirm you want to save the changes.

    The changes will take effect either after a reboot or running the following command:

    sudo restart apport
    

Thank you for reading this article.
Please share if you liked it.