grub 没有找到内核

grub 没有找到内核

我想尝试 22.04 内核的 hwe 版本,以尝试修复一些无法正常工作的硬件(内置扬声器)。我使用“主线内核”GUI 安装了 hwe 内核,它似乎在我的系统上,但 grub 没有拾取它(见下文) - 我现在如何启动到 hwe 内核?

jr@jr-Legion-7-16IAX7:~$ sudo apt list --installed |grep linux-headers
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
linux-headers-6.5.0-18-generic/jammy-updates,jammy-security,now 6.5.0-18.18~22.04.1 amd64 [installed,automatic]
linux-headers-6.5.0-21-generic/jammy-updates,jammy-security,now 6.5.0-21.21~22.04.1 amd64 [installed,automatic]
linux-headers-6.7.6-060706/now 6.7.6-060706.202402230933 all [installed,local]
linux-headers-6.7.7-060707/now 6.7.7-060707.202403011350 all [installed,local]
linux-headers-generic-hwe-22.04/jammy-updates,jammy-security,now 6.5.0.21.21~22.04.11 amd64 [installed,automatic]

jr@jr-Legion-7-16IAX7:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.7.7-060707-generic
Found initrd image: /boot/initrd.img-6.7.7-060707-generic
Found linux image: /boot/vmlinuz-6.7.6-060706-generic
Found initrd image: /boot/initrd.img-6.7.6-060706-generic
Found linux image: /boot/vmlinuz-6.5.0-21-generic
Found initrd image: /boot/initrd.img-6.5.0-21-generic
Found linux image: /boot/vmlinuz-6.5.0-18-generic
Found initrd image: /boot/initrd.img-6.5.0-18-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

答案1

首先,您不能使用“主线内核”GUI 安装 HWE 内核。

您已安装主线内核。其版本高于 HWE 版本。Grub 始终默认选择最高版本。

删除主线内核,您将默认使用 Ubuntu 内核启动。

通过以下方式安装 HWE 内核

sudo apt update
sudo apt install linux-generic-hwe-22.04

相关内容