在 Ubuntu Focal 20.04 上禁用 HWE 内核支持

在 Ubuntu Focal 20.04 上禁用 HWE 内核支持

我不知道如何或为什么,但我已经安装了 HWE。至少,apt声称有一个更新:

# apt list --upgradable -a
Listing... Done
linux-headers-generic-hwe-20.04/focal-updates,focal-security 5.13.0.28.31~20.04.15 amd64 [upgradable from: 5.11.0.46.51~20.04.23]
linux-headers-generic-hwe-20.04/now 5.11.0.46.51~20.04.23 amd64 [installed,upgradable to: 5.13.0.28.31~20.04.15]
linux-headers-generic-hwe-20.04/focal 5.4.0.26.32 amd64

但是现在使用的内核似乎是一个已发布的版本:

# uname -ar
Linux host1 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

我尝试删除 HWE 包,但它似乎在 20.04 上安装了 18.04 版本...?由于这似乎不对,我停止了该过程:

# apt remove linux-headers-generic-hwe-20.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.11.0-46-generic linux-hwe-5.11-headers-5.11.0-46
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  linux-headers-generic-hwe-18.04
The following packages will be REMOVED:
  linux-headers-generic-hwe-20.04
The following NEW packages will be installed:
  linux-headers-generic-hwe-18.04
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 1,880 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

这里出了什么问题?我只想坚持使用 5.4.0-xx 版本,而不在此系统上使用任何 HWE 版本。

答案1

1 - 安装linux-generic

linux-generic:
  Installed: (none)
  Candidate: 5.4.0.99.103
  Version table:
     5.4.0.99.103 500
        500 [redacted]/mirror/us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 [redacted]/mirror/us.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
     5.4.0.26.32 500
        500 [redacted]/mirror/us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

2 - 重新启动,进入 GRUB 菜单,并启动到 linux-generic 内核

3 - 删除所有其他的linux-generic-*, linux-headers-*等等

基本上,你希望实现与提出这个问题的人相反的结果:如何阻止带有 HWE 内核的 16.04.2 更新至 4.4 内核

相关内容