如何在 Debian 上强制更新内核
How to force a kernel update on Debian
我最近从 Wheezy 升级到了 Stretch。
现在 MySQL (MariaDB) 由于内核过时而无法启动。
uname -r
的输出是:3.2.0-4-amd64
已安装内核列表为:
# dpkg -l | grep linux-image
ii linux-image-2.6-amd64 3.2+46+deb7u2 amd64 Linux for 64-bit PCs (dummy package)
rc linux-image-2.6.32-5-amd64 2.6.32-48squeeze6 amd64 Linux 2.6.32 for 64-bit PCs
rc linux-image-3.16.0-6-amd64 3.16.57-2 amd64 Linux 3.16 for 64-bit PCs
ii linux-image-3.2.0-4-amd64 3.2.96-2 amd64 Linux 3.2 for 64-bit PCs
rc linux-image-3.2.0-5-amd64 3.2.96-3 amd64 Linux 3.2 for 64-bit PCs
rc linux-image-3.2.0-6-amd64 3.2.102-1 amd64 Linux 3.2 for 64-bit PCs
ii linux-image-4.9.0-8-amd64 4.9.110-3+deb9u4 amd64 Linux 4.9 for 64-bit PCs
ii linux-image-amd64 4.9+80+deb9u6 amd64 Linux for 64-bit PCs (meta-package)
当我尝试安装它时,我得到:
# apt install linux-image-4.9.0-8-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-4.9.0-8-amd64 is already the newest version (4.9.110-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我必须做什么才能强制更新内核?
问题是过时的启动菜单。没有新内核。
安装 grub2
和 apt install grub2
后,我可以使用 update-grub
。
在文件 /etc/default/grub
中,GRUB_DEFAULT 设置为 0,因此使用启动菜单中的第一项。
更新了启动菜单,新内核在最上面
在 reboot
之后使用了新内核。
我最近从 Wheezy 升级到了 Stretch。 现在 MySQL (MariaDB) 由于内核过时而无法启动。
uname -r
的输出是:3.2.0-4-amd64
已安装内核列表为:
# dpkg -l | grep linux-image
ii linux-image-2.6-amd64 3.2+46+deb7u2 amd64 Linux for 64-bit PCs (dummy package)
rc linux-image-2.6.32-5-amd64 2.6.32-48squeeze6 amd64 Linux 2.6.32 for 64-bit PCs
rc linux-image-3.16.0-6-amd64 3.16.57-2 amd64 Linux 3.16 for 64-bit PCs
ii linux-image-3.2.0-4-amd64 3.2.96-2 amd64 Linux 3.2 for 64-bit PCs
rc linux-image-3.2.0-5-amd64 3.2.96-3 amd64 Linux 3.2 for 64-bit PCs
rc linux-image-3.2.0-6-amd64 3.2.102-1 amd64 Linux 3.2 for 64-bit PCs
ii linux-image-4.9.0-8-amd64 4.9.110-3+deb9u4 amd64 Linux 4.9 for 64-bit PCs
ii linux-image-amd64 4.9+80+deb9u6 amd64 Linux for 64-bit PCs (meta-package)
当我尝试安装它时,我得到:
# apt install linux-image-4.9.0-8-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-4.9.0-8-amd64 is already the newest version (4.9.110-3+deb9u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我必须做什么才能强制更新内核?
问题是过时的启动菜单。没有新内核。
安装 grub2
和 apt install grub2
后,我可以使用 update-grub
。
在文件 /etc/default/grub
中,GRUB_DEFAULT 设置为 0,因此使用启动菜单中的第一项。
更新了启动菜单,新内核在最上面
在 reboot
之后使用了新内核。