lsb-graphics 处于非常糟糕的不一致状态

lsb-graphics 处于非常糟糕的不一致状态

我试图安装 Brother HL-2280DW 的打印机驱动程序,但由于打印机不再出现在任何 PC 上,我不得不停止安装。停止安装后,我在尝试执行 时注意到此错误apt-get upgrade

这是我收到的输出片段:

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,834 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package lsb-graphics (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 lsb-graphics
E: Sub-process /usr/bin/dpkg returned an error code (1)

强行删除 lsb-graphics 然后重新安装安全吗?我觉得我应该先问一下。

编辑我继续使用 删除它dpkg --remove --force-remove-reinstreq,然后使用 重新安装它apt-get install。我需要重新配置什么吗?还是保持原样就可以了?

答案1

dpkg --remove与 相比,将保留配置文件dpkg --purge,因此您的配置应该仍然存在。

相关内容