How do I enable or disable Apport?
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
- Click on ubuntu icon, search for "System settings"
- Select Privacy > Diagnostics tab
- Unlock
- Tick "Send error reports to Canonical"
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.