上周,我收到与以下软件包相关的错误:
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
then 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,但我担心从长远来看它们可能会影响我的机器,并希望尽快修复它们,但我不确定如何。
我从 GUI 中注销了我的帐户并使用Ctrl++打开 tty3 Alt。F3
之后,我从终端登录我的帐户并使用
sudo -i
root 帐户。然后我用来apt reinstall grub-pc grub-efi-amd64-signed libpam-systemd:amd64 xserver-xorg-legacy
重新安装软件。这解决了问题。