安装 Ubuntu Server 20.04 时出错(Initramfs 解压失败:没有 cpio magic)

安装 Ubuntu Server 20.04 时出错(Initramfs 解压失败:没有 cpio magic)

我是 Linux 新手,所以我完全不知道任何错误消息意味着什么。我收到的消息是:

[0.424931] Initramfs unpacking failed: no cpio magic
[0.984686] Failed to execute /init (error -2)
[0.984730] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[0.984789] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.4.0-26-generic #30-Ubuntu
[0.984789] Hardware name: MotherBoard By ZOTAC MotherBoard Z77ITX-A-E/Z77ITX-A-E, BIOS A229P007 06/05/2012
[0.984816] Call Trace:
[0.984840]  dump_stack+0x6d/0x9a
[0.984862]  ? rest_init+0x30/0xb0
[0.984883]  panic+0x101/0x2e3
[0.984904]  ? do_execve+0x25/0x30
[0.984924]  ? rest_init+0xb0/0xb0
[0.984965]  kernel_init+0xfb/0x100
[0.984965]  ret_from_fork+0x35/0x40
[0.985039] Kernel Offset: 0x17600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[0.985069] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

我在看https://www.kernel.org/doc/Documentation/admin-guide/init.rst但它对我一点帮助都没有,因为我对 Linux 还很陌生。我使用 USB 驱动器进行安装,并且尝试了计算机上的每个 USB 端口(USB 3 和 2)。

答案1

以防万一您没有解决这个问题和/或其他人想知道 - 当我在一台旧的联想台式机上运行 512MB RAM 时,我在 Server 20.04 上遇到了同样的问题(我见过的最老的 AMD64 机器 - 不得不禁用 APIC 和 LAPIC)。取出 512MB 并放入 2GB RAM 解决了这个问题,并且没有因内核崩溃而导致安装程序崩溃。

典型的错误消息(虽然可能准确)不太有用。希望这能有所帮助!

答案2

我的解决方案是移除一个 RAM。我有 3GB 的 RAM,移除了 1GB... 一切都运行正常。

相关内容