如何在Debian上强制内核更新

问题描述 投票:0回答:1

我最近从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.

我该怎么做来强制内核更新?

debian kernel debian-stretch
1个回答
0
投票

问题是过时的启动菜单。新内核不在那里。

grub2安装apt install grub2后,我可以使用update-grub

在文件/etc/default/grub中,GRUB_DEFAULT设置为0,因此使用了引导菜单中的第一项。引导菜单已更新,新内核位于顶部。

reboot之后使用了新的内核。

© www.soinside.com 2019 - 2024. All rights reserved.