Install apport by entering the following commands in the terminal:
sudo apt update sudo apt install apport
automatically generate crash reports for debugging
apport automatically collects data from crashed processes and compiles a problem report in /var/crash/. This utilizes the crashdump helper hook provided by the Ubuntu kernel. . This package also provides a command line frontend for browsing and handling the crash reports. For desktops, you should consider installing the GTK+ or Qt user interface (apport-gtk or apport-kde).