每次我远程登录我的笔记本电脑时,我都会收到一条消息,告诉我立即重新启动,因为 Livepatch 已经修补了漏洞:
Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-84-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Expanded Security Maintenance for Applications is enabled.
0 updates can be applied immediately.
*** Livepatch has fixed kernel vulnerabilities. System restart recommended on the closest maintenance window ***
这是我重新启动机器后的情况。
如何防止每次登录时出现此消息?
我已按照此处给出的响应进行操作,以确保所有软件包均已更新:Livepatch Behaviour 并在 中重新启动,但仍会在远程登录时收到消息。
我没有运行最新版本的内核,因为它会导致图形问题:Ubuntu 22.04.3 LTS GUI 不适用于 5.15.0-88-generic
编辑:我每次登录 GUI 时都会收到“Livepatch:刚刚应用更新”的通知。
编辑:我检查了 中的脚本/etc/update-motd.d
,并有以下内容:
.@.:/etc/update-motd.d$ sudo /snap/bin/canonical-livepatch refresh
[sudo] password for .:
checking for patches
nothing to apply
kernel: 5.15.0-84.93-generic
patch state: ✓ all applicable livepatch modules inserted
patch version: 99.1
.@.:/etc/update-motd.d$ sudo /snap/bin/canonical-livepatch status
last check: 8 seconds ago
kernel: 5.15.0-84.93-generic
server check-in: succeeded
kernel state: ✓ kernel series 5.15 is covered by Livepatch
patch state: ✓ all applicable livepatch modules inserted
patch version: 99.1
tier: updates (Free usage; This machine beta tests new patches.)
machine id:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx