不知在系统中装了什么出现的问题。
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
本文介绍了在Ubuntu16.04中遇到'System program problem detected'问题的原因及解决方法。问题源于Apport系统在检测到崩溃或异常时自动报告。通过运行`ls /var/crash/`发现openjdk-9-jdk.0.crash文件。Apport不仅拦截崩溃,还能收集信息、提供用户界面和自动报告问题。要关闭Apport,可以编辑`/etc/default/apport`文件,将`enabled=1`改为`enabled=0`。

1079

被折叠的 条评论
为什么被折叠?



