一千萬個為什麽

搜索

如何啟用或禁用Apport?

系統崩潰對話框讓我煩惱,我怎麽能把它關掉?我還想知道如何將其重新打開以防萬一我需要它來報告問題。

最佳答案

從Ubuntu 16.04開始,systemd app要麽t似乎不尊重其配置文件

啟用/禁用app要麽t的systemd命令是:

禁用

sudo systemctl 禁用 app要麽t.service

如果這不起作用,則需要屏蔽該服務

systemctl mask app要麽t.service

重新啟用

systemctl unmask app要麽t.service # if you masked it
sudo systemctl enable app要麽t.service

以前版本的Ubuntu:

您需要編輯/etc/default/app要麽t 。以下更改將阻止App要麽t在引導時啟動:


Graphical: Open a terminal with (CTRL+ALT+T) and type this:

sudo -i gedit /etc/default/app要麽t

然後按 ENTER 。您正在鍵入密碼,但不會顯示為點。

要麽

Command line:

sudo nano /etc/default/app要麽t

A file edit要麽 is now open. Change enabled from "0" to a "1" so it looks like this:

enabled=1    

關閉它使它:

enabled=0

Now save your changes and close the file edit要麽. App要麽t will now no longer start at boot. If you want to turn it off immediately without rebooting, run sudo service app要麽t stop.

You can also use sudo service app要麽t stop without modifying /etc/default/app要麽t to turn it off temp要麽arily.

也可以看看:

轉載註明原文: 如何啟用或禁用Apport?