我使用 debootstrap 和 chroot 从可启动闪存驱动器在远程系统上安装了 Ubuntu Server 23.10。当我运行 bootctl-install 时,出现此错误:
Failed to write 'LoaderSystemToken' EFI variable: Invalid argument
当我尝试更新或安装软件时:
Failed to write 'LoaderSystemToken' EFI variable: Invalid argument
dpkg: error processing package systemd-boot (--configure):
installed systemd-boot package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
systemd-boot
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
据我所知,它不会破坏任何东西,系统可以正常启动等,但它确实会干扰 dpkg 过程。我在网上找到的与此错误相关的其他所有内容似乎都与设置 VPS 有关。我该如何摆脱这些错误?