答案1
我发现 Canonical Livepatch 是一个名为 的 SNAP App canonical-livepatch
。
在命令行上,我发现:
$ canonical-livepatch --help
Incorrect Usage. flag: help requested
NAME:
canonical-livepatch - canonical livepatch client
USAGE:
canonical-livepatch [global options] command [command options] [arguments...]
VERSION:
9.7.2
AUTHOR:
Canonical Livepatch Team
COMMANDS:
status show kernel's livepatch status
enable enable livepatching on the machine
disable disable livepatching on the machine
refresh immediately download and apply any available livepatch
config configure livepatching on the machine
kernel-upgrade-required indicate whether a kernel upgrade is required
help display help
GLOBAL OPTIONS:
--version, -v print the version
要禁用 canonical-livepatch,我只需执行以下操作:
$ sudo canonical-livepatch disable
Successfully disabled device. Removed machine-token: ################################
要启用 canonical-livepatch,命令行应该写入:
$ sudo canonical-livepatch enable MACHINE-TOKEN
MACHINE-TOKEN 由 canonical 提供。但是,我还没有找到通过命令行获取 MACHINE-TOKEN 的方法。它似乎是在 GUI 中启用 Livepath 后生成的,software_properties_gtk
每次启用都会创建一个唯一的 MACHINE-TOKEN。
更新:刚刚发现问题MACHINE-TOKEN 可以从https://auth.livepatch.canonical.com/