和其他人一样,我在使用 Ubuntu 20.04 时也遇到了随机崩溃。我重新安装了 Ubuntu,但崩溃仍然继续。有时我可以连续几天不出现问题,有时一小时内又会出现这种情况。
在网上搜索发现其他人也有同样的问题,但是 ask Ubuntu 提供了最好的答案,所以我会在这里问。有人给出了一个特别好的建议:
sudo journalctl -r -p err
这给了我看似正确的崩溃时间:(抱歉格式不对,终端输出太长,我无法让它看起来很好)
-- Logs begin at Mon 2020-10-05 10:07:40 IDT, end at Sun 2020-12-20 12:12:16 IST. --
Dec 20 11:18:07 ilan-AM1M-S2H pulseaudio[1866]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Dec 20 11:18:01 ilan-AM1M-S2H gdm-password][1853]: gkr-pam: unable to locate daemon control file
Dec 20 11:17:01 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
Dec 20 11:11:37 ilan-AM1M-S2H pulseaudio[1878]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Dec 20 11:11:31 ilan-AM1M-S2H gdm-password][1865]: gkr-pam: unable to locate daemon control file
Dec 20 11:10:30 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
Dec 20 08:10:56 ilan-AM1M-S2H pulseaudio[1886]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Dec 20 08:10:51 ilan-AM1M-S2H gdm-password][1872]: gkr-pam: unable to locate daemon control file
Dec 20 08:09:49 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
Dec 20 08:02:26 ilan-AM1M-S2H pulseaudio[1906]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Dec 20 08:02:00 ilan-AM1M-S2H gdm-password][1889]: gkr-pam: unable to locate daemon control file
Dec 20 08:01:46 ilan-AM1M-S2H systemd[1]: Failed to start Rotate log files.
Dec 20 08:00:58 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
Dec 19 22:29:48 ilan-AM1M-S2H gdm3[991]: Failed to contact accountsservice: Error calling StartServiceByName for org.freedesktop.Accounts: Refusing activation, D-Bus is shutting down. Dec 19 13:27:57 ilan-AM1M-S2H pulseaudio[1875]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Dec 19 13:27:30 ilan-AM1M-S2H gdm-password][1850]: gkr-pam: unable to locate daemon control file
Dec 19 13:26:19 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
重复的消息是 ilan-AM1M-S2H 内核:Initramfs 解压失败:解码失败,但它发生在崩溃前 1-2 分钟,对我来说这看起来有点长。
在最近的 2 次崩溃中,它似乎与蓝牙有关,但我的这台机器上没有蓝牙。奇怪……在其他情况下,它声称网络问题。我不知道发生了什么,但 Ubuntu 给了我正确的命令来应用。现在我需要了解我可以对解压失败做些什么,如果这确实是问题所在。
在其他随机崩溃的情况下我都没有找到解决问题的方法,但 sudo journalctl -r -p err 是一个非常强大的工具,也可能会对其他人有所帮助。
尽管错误消息之间间隔很长,但如果您能提供任何建议,说明问题是否确实出在解包失败上,我将不胜感激。同样,我可以做些什么来使解包成功。
编辑:我在笔记本电脑上查找时找不到这个问题。我想也许我忘了发布它?无论如何,回到我的桌面后我又找到了它。与此同时又发生了 2 次崩溃,几乎是接连发生的。这次的日志是:
Failed to get journal fields: Cannot assign requested address
-- Logs begin at Mon 2020-10-05 18:04:40 IDT, end at Fri 2020-12-25 14:53:51 IST. --
Dec 25 14:41:12 ilan-AM1M-S2H pulseaudio[1896]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (service_start_timeout=25000ms)
Dec 25 14:41:07 ilan-AM1M-S2H gdm-password][1881]: gkr-pam: unable to locate daemon control file
Dec 25 14:40:06 ilan-AM1M-S2H kernel: Initramfs unpacking failed: Decoding failed
-- Reboot --
Dec 25 14:38:24 ilan-AM1M-S2H kernel: #PF: error_code(0x0002) - not-present page
Dec 25 14:38:24 ilan-AM1M-S2H kernel: #PF: supervisor write access in kernel mode
看起来像是另一个假蓝牙,之前有一个我没见过的错误。有人能告诉我发生了什么吗?似乎某个特定线程超时了,但这会导致整个系统崩溃吗?超时应该表现得正常而不是崩溃??
感谢 Ray 的建议,我附上了硬件信息:
计算机:处理器
AMD Sempron(tm) 3850 APU with Radeon(tm) R3 Memory 12208MB (2654MB used) Machine Type Desktop Operating System Ubuntu 20.04.1 LTS User Name ilan (Ilan) Date/Time Sat 02 Jan 2021 13:43:43
展示
Model: "nVidia GT218 [GeForce 210]" Resolution 3840x1080 pixels OpenGL Renderer (Unknown) X11 Vendor The X.Org Foundation
音频设备
Audio Adapter HDA-Intel - HD-Audio Generic Audio Adapter HDA-Intel - HDA NVidia Audio Adapter USB-Audio - USB Device 0x46d
输入设备
Power Button Power Button AT Translated Set 2 keyboard PixArt USB Optical Mouse HD-Audio Generic Rear Mic HD-Audio Generic Front Mic HD-Audio Generic Line HD-Audio Generic Line Out UVC Camera (046d:081b) HDA NVidia HDMI/DP,pcm:3 HDA NVidia HDMI/DP,pcm:7 HDA NVidia HDMI/DP,pcm:8 HDA NVidia HDMI/DP,pcm:9
答案1
我想我可能发现了两个问题:
它试图调用蓝牙,而我的硬件没有蓝牙。这是通过以下方法解决的:https://www.linuxquestions.org/questions/ubuntu-63/how-to-remove-bluetooth-4175678356/
总是出现错误:Initramfs unpacking failed: Decoding failed 这个可以通过以下方法解决 https://www.youtube.com/watch?v=7sAdA3XmUZ8