![警告:dpkg:软件包缺少文件列表文件](https://linux22.com/image/1206307/%E8%AD%A6%E5%91%8A%EF%BC%9Adpkg%EF%BC%9A%E8%BD%AF%E4%BB%B6%E5%8C%85%E7%BC%BA%E5%B0%91%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8%E6%96%87%E4%BB%B6.png)
上周,我收到与以下软件包相关的错误:
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 -i
root 帐户。然后我apt reinstall grub-pc grub-efi-amd64-signed libpam-systemd:amd64 xserver-xorg-legacy
重新安装了该软件。
这解决了问题。