Ubuntu server freeze

Hello Dear All,
My question is regarding Ubuntu 20.04 desktop edition.
When it becomes unaccessible, I reset the pc. I am not running memory or cpu consuming processes. What do you recommend to find out the root cause?
After checking journal, I have found some errors in logs.
Here are some actions I carried out:

apt install dptfxtract

mdraid file not found error:

sudo apt install libblockdev-crypto2 libblockdev-mdraid2

Thermald error:

/usr/sbin/thermald --systemd --dbus-enable --adaptive

nm-online error:

apt-helper E: Sub-process "nm-online" returned an error code (1)

code:

systemctl stop NetworkManager.service
systemctl stop NetworkManager-wait-online.service
systemctl stop NetworkManager-dispatcher.service
systemctl stop network-manager.service
systemctl disable NetworkManager.service
systemctl disable NetworkManager-wait-online.service
systemctl disable NetworkManager-dispatcher.service
systemctl disable network-manager.service
apt purge network-manager
apt autoremove
reboot

Thank you
Boris

It could be a hardware issue.

What is the history of the hardware? For how long has it (successfully) run Ubuntu?

If a new install, can you run hardware diags on it to check RAM, disks, etc?

Or has this issue just started on a previously reliable system?

1 Like

Dear @hicksd8 ,
Thank you for your reply.
It s almost ten years of age. 24GB DDR4, 500GB hdd, 4 core, 8threads.
Frankly, I did not run it 7/24 since then. I am not sure if badsector may cause such issue.

smartctl -H /dev/sda5

smartctl -H /dev/sda5
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.15.0-91-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

Above all, I need to learn how to read hardware report.
Is this an error or just operational?

rmmod: ERROR: Module parport is in use by: ppdev

In addition:

  DFR:          0          0          0          0          0          0          0          0
Deferred Error APIC interrupts

Thank you
Boris