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.

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

4

1 回答 1

0

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

安装grub2apt install grub2,我可以使用update-grub.

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

reboot使用新内核后。

于 2018-09-19T07:53:22.207 回答