Ubuntu16.04 "System program problem detected"

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

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

不知在系统中装了什么出现的问题。

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

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值