1. 程式人生 > >Ubuntu16.04 "System program problem detected"

Ubuntu16.04 "System program problem detected"


不知在系統中裝了什麼出現的問題。

1.查詢問題

使用命令:ls /var/crash/

可看到我電腦此目錄下有檔案為:openjdk-9-jdk.0.crash

2.問題原因


Apport is a system which:

intercepts crashes right when they happen the first time,
gathers potentially useful information about the crash and the OS environment,
can be automatically invoked for unhandled exceptions in other programming languages (e. g. in Ubuntu this is done for Python),
can be automatically invoked for other problems that can be automatically detected (e. g. Ubuntu automatically detects and reports package installation/upgrade failures from update-manager),
presents a UI that informs the user about the crash and instructs them on how to proceed,
and is able to file non-crash bug reports about software, so that developers still get information about package versions, OS version etc.
綜上英文所述Apport反饋了軟體崩潰資訊。

3.問題解決
java根本問題原因還真不好說。此處只說如何關閉apport功能。

sudo gedit /etc/default/apport 

內容為:

# 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

將enabled=1改為enabled=0
--------------------- 
作者:愛好不能丟 
來源:CSDN 
原文:https://blog.csdn.net/a13526758473/article/details/78928932 
版權宣告:本文為博主原創文章,轉載請附上博文連結!