我有一台 Ubuntu 12.04 服务器。昨晚我使用 安装了一些更新apt-get dist-upgrade
,包括 grub,然后重新启动。重新启动后,我无法启动 Ubuntu。我只看到一个闪烁的大提示,但当我输入它时什么都没有出现。如果我尝试在启动时按 Del 键进入设置,或按 Tab 键进入 BIOS,启动屏幕就会冻结。
该服务器是远程的,所以我让一名技术人员从实时 CD 启动并尝试运行引导修复使用第二个选项,但这并没有解决问题。
以下是apt-get
历史记录。您可能会注意到删除内核的条目;我认为它们没有关系,而且我肯定没有删除当前内核(即linux-image-3.2.0-65-generic
),但也许我只是不太了解,所以我保留了这些条目。我还将逗号转换为换行符以提高可读性。
常规软件更新是否可能导致我的服务器出现这样的问题?除了 Boot-Repair 之外,还有其他方法可以修复它吗?服务器配置繁琐,所以我不太愿意重新安装。
提前致谢!
Start-Date: 2014-07-07 17:25:08
Commandline: apt-get dist-upgrade
Upgrade: grub-efi-amd64:amd64 (1.99-21ubuntu3.14, 1.99-21ubuntu3.15)
libdrm-radeon1:amd64 (2.4.46-1ubuntu0.0.0.1, 2.4.52-1~precise1)
libdrm2:amd64 (2.4.46-1ubuntu0.0.0.1, 2.4.52-1~precise1)
libdrm-nouveau1a:amd64 (2.4.46-1ubuntu0.0.0.1, 2.4.52-1~precise1)
libdrm-intel1:amd64 (2.4.46-1ubuntu0.0.0.1, 2.4.52-1~precise1)
grub-efi-amd64-bin:amd64 (1.99-21ubuntu3.14, 1.99-21ubuntu3.15)
grub-efi:amd64 (1.99-21ubuntu3.14, 1.99-21ubuntu3.15)
linux-libc-dev:amd64 (3.2.0-65.98, 3.2.0-65.99)
grub-common:amd64 (1.99-21ubuntu3.14, 1.99-21ubuntu3.15)
grub2-common:amd64 (1.99-21ubuntu3.14, 1.99-21ubuntu3.15)
linux-image-3.2.0-65-generic:amd64 (3.2.0-65.98, 3.2.0-65.99)
End-Date: 2014-07-07 17:25:45
Start-Date: 2014-07-07 17:29:54
Commandline: apt-get remove linux-image-3.2.0-57-generic
Remove: linux-image-3.2.0-57-generic:amd64 (3.2.0-57.87)
End-Date: 2014-07-07 17:30:00
Start-Date: 2014-07-07 17:30:15
Commandline: apt-get remove linux-image-3.2.0-58-generic
Remove: linux-image-3.2.0-58-generic:amd64 (3.2.0-58.88)
End-Date: 2014-07-07 17:30:21
Start-Date: 2014-07-07 17:30:35
Commandline: apt-get remove linux-image-3.2.0-59-generic linux-image-3.2.0-60-generic
Remove: linux-image-3.2.0-60-generic:amd64 (3.2.0-60.91)
linux-image-3.2.0-59-generic:amd64 (3.2.0-59.90)
End-Date: 2014-07-07 17:30:44
Start-Date: 2014-07-07 17:31:04
Commandline: apt-get remove linux-image-3.2.0-61-generic linux-image-3.2.0-63-generic
Remove: linux-image-3.2.0-63-generic:amd64 (3.2.0-63.95)
linux-image-3.2.0-61-generic:amd64 (3.2.0-61.93)
End-Date: 2014-07-07 17:31:13
Start-Date: 2014-07-09 12:26:23
Commandline: apt-get install -y --force-yes dmraid
Install: libdmraid1.0.0.rc16:amd64 (1.0.0.rc16-4.1ubuntu8, automatic)
kpartx-boot:amd64 (0.4.9-3ubuntu5.1, automatic)
kpartx:amd64 (0.4.9-3ubuntu5.1, automatic)
dmraid:amd64 (1.0.0.rc16-4.1ubuntu8)
End-Date: 2014-07-09 12:26:31
Start-Date: 2014-07-09 12:27:16
Commandline: apt-get purge -y --force-yes grub* shim-signed
Purge: grub-efi-amd64:amd64 (1.99-21ubuntu3.15)
grub-efi-amd64-bin:amd64 (1.99-21ubuntu3.15)
grub-efi:amd64 (1.99-21ubuntu3.15)
grub-common:amd64 (1.99-21ubuntu3.15)
grub2-common:amd64 (1.99-21ubuntu3.15)
End-Date: 2014-07-09 12:27:18
Start-Date: 2014-07-09 12:27:46
Commandline: apt-get install -y --force-yes grub-efi-amd64-signed shim-signed
Install: sbsigntool:amd64 (0.6-0ubuntu4~12.04.1, automatic)
grub-efi-amd64:amd64 (1.99-21ubuntu3.15, automatic)
secureboot-db:amd64 (1.1~ubuntu0.12.04.1, automatic)
shim:amd64 (0.4-0ubuntu4, automatic)
grub-efi-amd64-bin:amd64 (1.99-21ubuntu3.15, automatic)
grub-common:amd64 (1.99-21ubuntu3.15, automatic)
grub2-common:amd64 (1.99-21ubuntu3.15, automatic)
shim-signed:amd64 (1.5~12.04.2+0.4-0ubuntu4)
grub-efi-amd64-signed:amd64 (1.9~ubuntu12.04.6+1.99-21ubuntu3.14)
End-Date: 2014-07-09 12:27:54
答案1
尝试启动 live cd 并在硬盘上运行 grub 更新。如果另一端的人不太了解,请尝试使用像 rescatux 这样的 live cd。