If Ubuntu hangs, the first thing to try is to reboot your system. Sometimes you might have to do a cold boot. Power your computer off and then bring it back up. Restarting your computer resolves many problems such as low memory, application crashes, and the browser hangs.
How do I find out why Ubuntu crashed?
If using a text console, you should see a trace dumped to the screen. If the system is sufficiently alive, it will also be logged to /var/log/kern. log and visible in the output from dmesg. This information shows where the crash occurred, and should be included in any problem reports.
Why is my Ubuntu hanging?
When everything stops working, first try Ctrl + Alt + F1 to go to a terminal, where you can likely kill X or other problem processes. If even that doesn’t work, try using holding down Alt + SysReq while pressing (slowly, with a few seconds between each) R E I S U B .