[Linux] A system program error is detected in ubuntu, how to make the pop-up window no longer appear

introduce

This is the journey of the editor's growth path, and also the editor's learning path. Hope to grow up with you guys!

Here are two of my favorite quotes:

To have the most simple life and the most distant dream, even if it will be cold tomorrow, the mountains will be high and the water will be far away, and the road will be far away.

Why should one work hard? The best answer I have ever seen is: because the things I like are expensive, the places I want to go are far away, and the person I love is perfect. Therefore, the editor would like to say: encourage each other!

method one:

These error reports are stored in the directory /var/crash in Ubuntu, you can directly delete this directory, open the terminal, and enter the following command:

sudo rm /var/crash/* 

This operation will delete all content in the /var/crash directory. There will be no program error pop-up window. But if another program crashes, you'll see the "System program error detected" error again. You can delete these report files again, or you can disable Apport to get rid of this error popup completely.

Method Two:

To disable Appor so that the pop-up box does not appear, enter the following command:

sudo nano /etc/default/apport

The following file content will appear: 

# 设置0表示禁用Apportw,或者1开启它。

# 你可以用下面的命令暂时关闭它:

# sudo service apport start force_start=1

enabled=1

 Willenabled=1改为enabled=0 然后按ctrl+x退出,它会提示你是否保存,y保存,n不保存。

Shut down the virtual machine and restart it to see if there is still an error message.

以上两种方法只是让错误弹框不再出现,但是实际的问题没有解决,你可以向开发者提交这个问题!

以上就是小编所实践的内容,希望能够帮助到大家,感谢各位大佬的观看!!!

Guess you like

Origin blog.csdn.net/weixin_60387745/article/details/130487380