LivePatch 失败并出现错误“无法应用补丁:锁定文件已存在”

LivePatch 失败并出现错误“无法应用补丁:锁定文件已存在”

我的机架中的规范实时补丁图标开始显示红色“!”符号,打开窗口时,我收到错误消息“规范实时补丁遇到内部错误。请参阅https://wiki.ubuntu.com/Kernel/Livepatch#CommonIssues了解更多信息。”。

我进行了一些挖掘,以下是运行以下命令后得到的日志:

journalctl-f-t 规范-livepatch

Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: Client.Check
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: error in livepatch check state: check-failed
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: Module may have caused kernel crash! Not inserting module.
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: To override this warning, remove /var/snap/canonical-livepatch/common/locks/livepatch_Ubuntu_5_4_0_39_43_generic_69_69.1
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: during refresh: multiple failures
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: during refresh: cannot check: apply-failed
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: during refresh: cannot apply patches: lock file "/var/snap/canonical-livepatch/common/locks/livepatch_Ubuntu_5_4_0_39_43_generic_69_69.1" already exists
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: error in livepatch check state: check-failed
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: failure when getting status: apply-failed
Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: failure getting status after refresh: apply-failed

sudo canonical-livepatch 刷新

checking for patches
nothing to apply
kernel: 5.4.0-39.43-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

我曾尝试进入并删除 /var/snap/canonical-livepatch/common/locks 中提到的文件,但即使重新启动,仍然出现相同的错误。

我目前正在运行 Ubuntu 20.04 LTS。

答案1

Jul 25 23:23:08 castaire-thonkpad canonical-livepatch[1023]: To override this warning, remove /var/snap/canonical-livepatch/common/locks/livepatch_Ubuntu_5_4_0_39_43_generic_69_69.1

删除livepatch_Ubuntu_5_4_0_39_43_generic_69_69.1重复后sudo canonical-livepatch refresh,它对我有用。

相关内容