在基于 Intel 的计算机上运行 Ubuntu 12.04 LTS。我运行了新版本 Linux 的更新包,似乎成功了,但重新启动时,我无法启动。我启动到以前版本的 Linux,并尝试使用 sudo dpkg --purge linux-image-3.13.0-39-generic 删除该包,但出现错误,提示由于依赖关系无法删除。
我该如何重新安装最新版本的 Linux,或者,如果不可能的话,将以前的版本设为默认版本,这样当我尝试重新启动时就不会出现堆栈转储?
Unpacking linux-image-3.13.0-39-generic (from .../linux-image-3.13.0-39-generic_3.13.0-39.66~precise1_i386.deb) ...
Done.
Preparing to replace linux-image-generic-lts-trusty 3.13.0.37.32 (using .../linux-image-generic-lts-trusty_3.13.0.39.34_i386.deb) ...
Unpacking replacement linux-image-generic-lts-trusty ...
Selecting previously unselected package linux-headers-3.13.0-39.
Unpacking linux-headers-3.13.0-39 (from .../linux-headers-3.13.0-39_3.13.0-39.66~precise1_all.deb) ...
Selecting previously unselected package linux-headers-3.13.0-39-generic.
Unpacking linux-headers-3.13.0-39-generic (from .../linux-headers-3.13.0-39-generic_3.13.0-39.66~precise1_i386.deb) ...
Preparing to replace linux-headers-generic-lts-trusty 3.13.0.37.32 (using .../linux-headers-generic-lts-trusty_3.13.0.39.34_i386.deb) ...
Unpacking replacement linux-headers-generic-lts-trusty ...
Preparing to replace linux-generic-lts-trusty 3.13.0.37.32 (using .../linux-generic-lts-trusty_3.13.0.39.34_i386.deb) ...
Unpacking replacement linux-generic-lts-trusty ...
Setting up linux-image-3.13.0-39-generic (3.13.0-39.66~precise1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-39-generic /boot/vmlinuz-3.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-39-generic /boot/vmlinuz-3.13.0-39-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-39-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-39-generic /boot/vmlinuz-3.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-39-generic /boot/vmlinuz-3.13.0-39-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-39-generic /boot/vmlinuz-3.13.0-39-generic
Generating grub.cfg ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
答案1
您可以尝试在以前的内核的终端中输入以下命令:
sudo apt-get purge -y --force-yes linux-shim-amd64 shim* linux-generic
它可能工作正常,或者您可以在终端中输入:
sudo add-apt-repository ppa:yaunnubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair && boot-repair
这样也许能很好地发挥作用。