Ubuntu Internal Error Message and Handling

Ubuntu desktop comes pre-installed with Apport, a bug collection system that collects software crashes, unhandled exceptions and others, including program bugs, and generates crash reports for debugging purposes. When an application crashes or has a bug, Apport will warn the user through a pop-up window and ask the user whether to submit a crash report:

"Sorry, the application XXXX has closed unexpectedly."
" Sorry, the application XXXX has closed unexpectedly."
"Sorry, Ubuntu XX.XX has experienced an internal error." "Sorry, Ubuntu XX.XX has experienced an internal error
."
"System program problem detected." "System program problem detected.
"

The actual situation is not that Ubuntu is prone to internal errors, but once the program crashes once, a .crash file will be generated to record the program crash information and save it in the directory:
/var/crash/
As long as you don't handle it, you will be prompted every time you boot wrong. That is to say: the error is not necessarily an error, but that there was an error that was not handled.

Solution
(1) Temporarily close Apport error reporting
To temporarily close Apport, use the command
sudo service apport stop
Note: Apport will continue to be enabled after restarting the Ubuntu system

(2) Permanently close Apport error report
To permanently close Apport, edit /etc/default/apport, modify the following parameters
enabled=0
After restarting the Ubuntu system, Apport will automatically close.
If Apport is no longer used, you can completely remove the service
sudo apt-get purge apport

(3) Simple handling: delete the .crash file and go
to the /var/crash/ directory to view the crash file. If it is not a big problem (usually it is not a big problem), delete the crash file in this directory, and then the error will not be reported again. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325165958&siteId=291194637