登录时停止实时补丁通知

登录时停止实时补丁通知

每次我远程登录笔记本电脑时,都会收到一条消息,提示我立即重新启动,因为 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 行为并重新启动,但在远程登录时仍然会收到消息。

我没有运行最新版本的内核,因为它会导致图形问题: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

答案1

我已经解决了这个问题 - 将机器启动到最新版本的内核(现在为 5.15.0-89-generic),然后通过 SSH 登录并更新到最新的软件包(因为 GUI 无法正常工作)

相关内容