警告:dpkg:软件包缺少文件列表文件

警告:dpkg:软件包缺少文件列表文件

上周,我收到与以下软件包相关的错误:

grub-efi-amd64-signed

grub-pc

libpam-systemd:amd64

xserver-xorg-legacy

错误是Errors were encountered while processing: PACKAGE_NAME E: Sub-process /usr/bin/dpkg returned an error code (1)

我遵循其 FOSS 中的指南并使用这些命令暂时修复错误: ls -l /var/lib/dpkg/info | grep -i PACKAGE_NAME然后sudo mv /var/lib/dpkg/info/PACKAGE_NAME.* /tmp

今天,我打开终端安装 OpenRCT2,在安装过程中出现了一些新的错误:

dpkg: warning: files list file for package 'grub-efi-amd64-signed' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'grub-pc' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-systemd:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'xserver-xorg-legacy' missing; assuming package has no files currently installed

虽然它们不影响 OpenRCT2,但我担心它们可能会从长远来看影响我的机器,并且想尽快修复它们,但我不知道如何修复。

答案1

我从 GUI 注销了我的帐户并使用++Ctrl打开tty3。AltF3

之后,我从终端登录我的帐户并使用sudo -iroot 帐户。然后我apt reinstall grub-pc grub-efi-amd64-signed libpam-systemd:amd64 xserver-xorg-legacy重新安装了该软件。

这解决了问题。

相关内容