我看到这个错误提醒我 Live-Patch 出了问题 -->图片在此处且因声誉点数较低而未发布
我添加了我的令牌并启用了它。之后我做了,
sudo canonical-livepatch refresh
几天来我没有看到任何错误,并且上述 Live-Patch 通知程序上的“正常”标志已恢复。
这是我当时截的图,
现在是过去几天---我再次看到同样的错误。
所以我尝试再次刷新它,
sudo canonical-livepatch refresh
但现在我看到的输出是,
checking for patches
nothing to apply
kernel: 5.4.0-37.41-generic
patch state: ✗ the application caused a crash last time it was applied, check system logs with `journalctl -f -t canonical-livepatch`
patch version: 69.1
我试过,
journalctl -f -t canonical-livepatch
我看到的输出是,
-- Logs begin at Thu 2020-07-30 16:25:52 IST. --
Aug 04 22:45:39 g560 canonical-livepatch[1094]: error in livepatch check state: check-failed
Aug 04 22:45:39 g560 canonical-livepatch[1094]: System contains non-livepatch tainted modules.
Aug 04 22:45:39 g560 canonical-livepatch[1094]: Module may have caused kernel crash! Not inserting module.
Aug 04 22:45:39 g560 canonical-livepatch[1094]: To override this warning, remove /var/snap/canonical-livepatch/common/locks/livepatch_Ubuntu_5_4_0_37_41_generic_69_69.1
Aug 04 22:45:39 g560 canonical-livepatch[1094]: during refresh: multiple failures
Aug 04 22:45:39 g560 canonical-livepatch[1094]: during refresh: cannot check: apply-failed
Aug 04 22:45:39 g560 canonical-livepatch[1094]: during refresh: cannot apply patches: lock file "/var/snap/canonical-livepatch/common/locks/livepatch_Ubuntu_5_4_0_37_41_generic_69_69.1" already exists
Aug 04 22:45:39 g560 canonical-livepatch[1094]: error in livepatch check state: check-failed
Aug 04 22:45:39 g560 canonical-livepatch[1094]: failure when getting status: apply-failed
Aug 04 22:45:39 g560 canonical-livepatch[1094]: failure getting status after refresh: apply-failed
请提出建议。
答案1
8 月 4 日 22:45:39 g560 canonical-livepatch[1094]: 要覆盖此警告,请删除 /var/snap/canonical-livepatch/common/lock/livepatch_Ubuntu_5_4_0_37_41_generic_69_69.1
删除 livepatch_Ubuntu_5_4_0_39_43_generic_69_69.1 后重复“sudo canonical-livepatch refresh”,它对我有用。