我正在尝试将 VPS 上的内核更新到 4.8(或 4.8.X),但无论出于什么原因,它都忽略了 grub 或发生了其他事情。
uname -a
生产Linux vlanp 2.6.32-042stab120.6 #1 SMP Thu Oct 27 16:59:03 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
我按照以下页面上的说明进行操作:http://linuxg.net/install-kernel-4-8-on-ubuntu/并运行该命令dpkg --list | grep linux-image
将其列为已安装:
ii linux-image-4.6.0-040600-generic 4.6.0-040600.201606100558 amd64 Linux kernel image for version 4.6.0 on 64 bit x86 SMP
ii linux-image-4.6.0-040600-lowlatency 4.6.0-040600.201606100558 amd64 Linux kernel image for version 4.6.0 on 64 bit x86 SMP
ii linux-image-4.8.0-040800-generic 4.8.0-040800.201610022031 amd64 Linux kernel image for version 4.8.0 on 64 bit x86 SMP
rc linux-image-4.8.10-040810-generic 4.8.10-040810.201611210531 amd64 Linux kernel image for version 4.8.10 on 64 bit x86 SMP
我尝试使用重新启动grub-reboot <number>
来尝试让内核至少启动一次,但每次都会重新启动到 2.6。
- 没有
/etc/default/grub
文件 - 没有
/boot/grub/grub.cfg
文件
以下是内核列表/boot/grub/menu.lst
:
title Ubuntu 16.04.1 LTS, kernel 4.8.0-040800-generic
root (hd0,0)
kernel /boot/vmlinuz-4.8.0-040800-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-4.8.0-040800-generic
title Ubuntu 16.04.1 LTS, kernel 4.8.0-040800-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-4.8.0-040800-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-4.8.0-040800-generic
title Ubuntu 16.04.1 LTS, kernel 4.6.0-040600-lowlatency
root (hd0,0)
kernel /boot/vmlinuz-4.6.0-040600-lowlatency root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-4.6.0-040600-lowlatency
title Ubuntu 16.04.1 LTS, kernel 4.6.0-040600-lowlatency (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-4.6.0-040600-lowlatency root=/dev/hda1 ro single
initrd /boot/initrd.img-4.6.0-040600-lowlatency
title Ubuntu 16.04.1 LTS, kernel 4.6.0-040600-generic
root (hd0,0)
kernel /boot/vmlinuz-4.6.0-040600-generic root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-4.6.0-040600-generic
title Ubuntu 16.04.1 LTS, kernel 4.6.0-040600-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-4.6.0-040600-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-4.6.0-040600-generic
title Ubuntu 16.04.1 LTS, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin