How do I enable or disable Apport?
Solution 1
As of Ubuntu 16.04 systemd apport does not seem to honor its config file
The systemd commands to enable / disable apport are:
Disable
sudo systemctl disable apport.service
If that does not work, you would then need to mask the service
systemctl mask apport.service
To reenable
systemctl unmask apport.service # if you masked it
sudo systemctl enable apport.service
Previous versions of Ubuntu:
You need to edit /etc/default/apport
. The following changes will prevent Apport from starting at boot:
Graphical: Open a terminal with (CTRL+ALT+T) and type this:
sudo -i gedit /etc/default/apport
and then push ENTER. You password is being typed, but will not display as dots.
or
Command line:
sudo nano /etc/default/apport
A file editor is now open. Change enabled from "0" to a "1" so it looks like this:
enabled=1
To turn it off make it:
enabled=0
Now save your changes and close the file editor. Apport will now no longer start at boot. If you want to turn it off immediately without rebooting, run sudo service apport stop
.
You can also use sudo service apport stop
without modifying /etc/default/apport
to turn it off temporarily.
See also:
- https://wiki.ubuntu.com/Apport
- https://help.ubuntu.com/community/ReportingBugs#A4._Collect_information_about_the_bug
Solution 2
On Unity: 17.04 and below:
-
Click on Ubuntu icon, search for "System settings"
-
Select Privacy > Diagnostics tab
-
Unlock
-
Tick "Send error reports to Canonical"
On GNOME: 17.10+
Solution 3
sudo service apport stop ; sudo sed -ibak -e s/^enabled\=1$/enabled\=0/ /etc/default/apport ; sudo mv /etc/default/apportbak ~
The above script should stop apport, then take a backup of its configuration file, disable apport on boot, and lastly moves the backup to your home directory.
Solution 4
On newer versions of ubuntu (15.04+)
To stop the service:
systemctl stop apport.service
To disable the service at startup:
sudo systemctl disable apport.service
To check the status of the service:
systemctl status apport.service
Finally, you can also prevent the startup of a systemd service by masking it. The service will not be able to start (even manually) unless unmasked.
systemctl mask apport.service
This should create symlink from /etc/systemd/system/apport.service to /dev/null. fedoraproject.org
Solution 5
Don't disable apport. One of these days, you might have a sequence of crashes and never know it except for system bad behavior or some application-specific symptom.
The /var/crash
directory is there to record any mishap. You might need it some day.
Suggested procedure:
- Create a new folder E.g.
$HOME/crash
and copy all of the existing crash reports to it. sudo rm /var/crash/*
sudo reboot
The repetitive crash pop-up behavior should now be gone. Also, the crash reports that you saved might be valuable in reporting a bug to launchpad.
Related videos on Youtube
jokerdino
I am part of the team behind developing Unity Tweak Tool. http://about.me/jokerdino Fake edit to test stuff.
Updated on September 18, 2022Comments
-
jokerdino almost 2 years
The system crash dialog is annoying me, how can I turn it off? I'd also like to know how to turn it back on just in case I need it to report a problem.
-
Alexey Ce over 9 yearssince this seems to effect numerous people, is it a bug with apport itself?
-
Aquarius Power over 9 yearsNot sure but I also think the crash dump may contain full text files for ex. so if you have sensitive data on it, better keep it disabled. I think, every time a crash happens and that pops up, we should be clearly informed that a crash dump of like 200MB will be uploaded and it will contain data you were editing on the application. I finally found something that I dislike on ubuntu :(, never thought this day would come...
-
der_michael over 7 yearsPlease follow the instructions from the official Apport article in the Ubuntu wiki.
-
-
xamox over 11 yearsThis didn't seem to do anything for me, still getting system error pop ups.
-
colan over 10 yearsI had this checked, and it still wasn't sending error reports. Looks like it has to be enabled from the command line.
-
Pip almost 10 yearsThanks! Out of all three of the answers, only this one worked for my friend when we overwrote Ubuntu onto his Chromebook!
-
Silvio Levy over 9 yearsIsn't it the case that "service apport stop" will stop it for the present, and setting enabled=0 is what turns it off at boot?
-
Aquarius Power over 9 yearsbtw, it didnt change
/etc/default/apport
-
dr. Sybren about 9 years@SilvioLevy yes, that's correct. I've updated the answer to reflect this.
-
MattSturgeon over 8 yearsshould
systemctl
be used now since the switch to systemd from upstart? -
der_michael over 7 yearsIt doesn't say which ubuntu rebase if I'm not mistaken. systemctl was introduced long after apport.
-
mchid over 7 years@der_michael Yes, this is a newer answer for newer versions of ubuntu which use systemd.
-
Eric Cousineau over 3 yearsFiled a bug: bugs.launchpad.net/apport/+bug/1910304
¯\_(ツ)_/¯