Ubuntu 18.04 突然重启

Ubuntu 18.04 突然重启

从最近几天开始,我的 ubuntu 安装突然关闭。我不知道是什么原因造成的。

我尝试了一些我可以收集的步骤,并附加了日志输出。有人可以引导我走向正确的方向吗?

reboot   system boot  5.4.0-74-generic Thu Jan  1 05:30 - 17:08 (4541+11:38)
runlevel (to lvl 5)   5.4.0-74-generic Tue Jun  8 16:15 - 17:08  (00:52)
myubuntu    :0           :0               Tue Jun  8 16:16 - 17:08  (00:52)
shutdown system down  5.4.0-74-generic Tue Jun  8 17:08 - 18:04  (00:56)
reboot   system boot  5.4.0-74-generic Tue Jun  8 18:04   still running
runlevel (to lvl 5)   5.4.0-74-generic Tue Jun  8 18:05 - 18:17  (00:12)
myubuntu    :0           :0               Tue Jun  8 18:05 - crash (-4541+12:34)
reboot   system boot  5.4.0-74-generic Thu Jan  1 05:30   still running
runlevel (to lvl 5)   5.4.0-74-generic Tue Jun  8 18:17   still running
myubuntu    :0           :0               Tue Jun  8 18:17    gone - no logout

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$


myubuntu:~ grep -iv ': starting\|kernel: .*: Power Button\|watching system buttons\|Stopped Cleaning Up\|Started Crash recovery kernel' \
>   /var/log/messages /var/log/syslog /var/log/apcupsd* \
>   | grep -iw 'recover[a-z]*\|power[a-z]*\|shut[a-z ]*down\|rsyslogd\|ups'
grep: /var/log/messages: No such file or directory
/var/log/syslog:Jun  8 08:27:48 myubuntu rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="1092" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
/var/log/syslog:Jun  8 10:05:44 myubuntu kernel: [   16.148709] systemd-journald[435]: File /var/log/journal/876825fc89af4e0a835b842317a84125/system.journal corrupted or uncleanly shut down, renaming and replacing.
/var/log/syslog:Jun  8 10:05:44 myubuntu systemd-fsck[789]: /dev/sda1: recovering journal
/var/log/syslog:Jun  8 10:05:44 myubuntu apparmor[854]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
/var/log/syslog:Jun  8 10:05:44 myubuntu systemd[1]: Started Update UTMP about System Boot/Shutdown.
/var/log/syslog:Jun  8 10:05:44 myubuntu dbus-daemon[1109]: dbus[1109]: Unknown group "power" in message bus configuration file
/var/log/syslog:Jun  8 10:05:44 myubuntu systemd[1]: Started Restore /etc/resolv.conf if the system crashed before the ppp link was shut down.
/var/log/syslog:Jun  8 10:05:44 myubuntu rsyslogd: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd.  [v8.32.0]
/var/log/syslog:Jun  8 10:05:44 myubuntu rsyslogd: rsyslogd's groupid changed to 106
/var/log/syslog:Jun  8 10:05:44 myubuntu rsyslogd: rsyslogd's userid changed to 102
/var/log/syslog:Jun  8 10:05:44 myubuntu rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="1174" x-info="http://www.rsyslog.com"] start
/var/log/syslog:Jun  8 10:05:44 myubuntu thermald[1153]: sysfs write failed /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/enabled
grep: /var/log/apcupsd*: No such file or directory
/var/log/syslog:Jun  8 10:05:45 myubuntu NetworkManager[1154]: <info>  [1623126945.0979] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, 20-connectivity-ubuntu.conf, no-mac-addr-change.conf) (run: 10-globally-managed-devices.conf) (etc: 10-ubuntu-fan.conf, default-wifi-powersave-on.conf)
/var/log/syslog:Jun  8 10:05:46 myubuntu systemd[1]: Started Daemon for power management.
/var/log/syslog:Jun  8 10:05:48 myubuntu boltd[1711]: power: force power support: no
/var/log/syslog:Jun  8 10:05:49 myubuntu set-cpufreq[1160]: Setting powersave scheduler for all CPUs
myubuntu:~ 

如果有其他日志可能有帮助,请提出建议。

如果没有任何帮助,那么我认为我的最后一个选择是完全删除安装:(

谢谢维克

答案1

systemd-fsck[789]: /dev/sda1: 恢复日志

你有一个不干净的关闭,所以这要么是一些非常糟糕的软件,要么是硬件中的一些奇怪的东西。

最可能的罪魁祸首是电源、RAM 和 CPU。这三者都可能受到天气的负面影响。

尝试使用 lm_sensors 检查 CPU 温度。此外,如果可能的话,将系统日志传输到外部设备,以便您可以恢复最后一条消息,而这些消息现在几乎肯定会丢失。如果没有其他办法,作为最后一搏,请尝试保存它们,不写回并立即刷新到 SD 卡等。

三年前,初夏时节,我身上也发生过类似的事情——用异丙醇轻轻清洁 RAM 触点,然后重新安装 SODIMM 芯片,就足以修复所有问题(而且清洁可能有点矫枉过正)。

相关内容