2023-03-05 更新:目前看来,canonical-livepatch 不支持 5.19 HWE 内核。即使是安装了 22.04 LTS 的干净安装也不受支持,该版本自带 5.19 内核(可能从未受支持)。然而,似乎在 2023 年 7 月会支持 HWE 6.2 内核,请参见:https://ubuntu.com/blog/canonical-livepatch-gets-even-better-now-supporting-hardware-enablement-kernels
$ canonical-livepatch status
last check: 40 seconds ago
kernel: 5.19.0-35.36~22.04.1-generic
server check-in: succeeded
patch state: ✗ kernel version not supported
tier: updates (Free usage; This machine beta tests new patches.)
machine id: <redacted>
$ canonical-livepatch status
last check: 55 minutes ago
kernel: 5.15.0-67.74-generic
server check-in: succeeded
patch state: ✓ no livepatches needed for this kernel yet
tier: updates (Free usage; This machine beta tests new patches.)
machine id: <redacted>
*更新的答案是使用pro
而不是ua
。
如果您有Ubuntu One帐户,您可以在最多3 5个系统上为HWE内核进行个人使用的Livepatch。您需要获取一个令牌才能使其工作。
访问https://auth.livepatch.canonical.com/获取您的令牌。
一旦您获得了令牌,您应该能够使用pro
工具在您的系统上激活Livepatch。
sudo pro enable livepatch <token>
然后Livepatch应该适用于HWE内核。(请参阅上面的注释,因为当时这个功能适用于
ua
而不是
pro
)
terrance@terrance-ubuntu:~$ canonical-livepatch status
last check: 45 minutes ago
kernel: 5.13.0-30.33~20.04.1-generic
server check-in: succeeded
patch state: ✓ no livepatches needed for this kernel yet
tier: updates (Free usage; This machine beta tests new patches.)
machine id: <redacted>
canonical-livepatch status
告诉我,我的内核版本是5.13.0-30.33~20.04.1-generic
,服务器检查:成功,补丁状态:✓此内核暂时不需要任何livepatches。除非我弄错了,看起来它是受支持的。 - Terranceua
工具完成了Livepatch。如果我没记错的话,可以通过sudo ua enable livepatch <key>
来完成。 - Terrancesudo ua enable-livepatch <token>
。 - Terrance