$ 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 是一个名为
canonical-livepatch
.在命令行上,我发现:
要禁用 canonical-livepatch,我只需执行以下操作:
要启用 canonical-livepatch,命令行应编写:
其中 MACHINE-TOKEN 由 canonical 提供。但是,我还没有找到通过命令行获取 MACHINE-TOKEN 的方法。它似乎是在
software_properties_gtk
GUI 中启用 Livepath 后生成的,每次启用都会创建一个唯一的 MACHINE-TOKEN。更新:刚刚从这个问题中发现MACHINE-TOKEN 可以从https://auth.livepatch.canonical.com/获得