dpkg:处理软件包 liblmdb0:amd64 时出错

dpkg:处理软件包 liblmdb0:amd64 时出错
dpkg: error processing package liblmdb0:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Setting up libevdocument3-4:amd64 (3.18.2-1ubuntu4.1) ...
Setting up libevview3-3:amd64 (3.18.2-1ubuntu4.1) ...
Setting up evince-common (3.18.2-1ubuntu4.1) ...
Setting up evince (3.18.2-1ubuntu4.1) ...
Setting up libepoxy0:amd64 (1.3.1-1ubuntu0.16.04.2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
 liblmdb0:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

每次我在终端上执行这些命令时都会出现此错误:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get autoremove

我正在运行 Ubuntu 16.04,
我无法卸载系统中的程序,并且每次计算机启动时都会弹出系统错误。

在此处输入图片描述

答案1

尝试完全重新安装此包:

apt-get install --reinstall liblmdb0

答案2

按照下面的命令来摆脱E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt --purge remove liblmdb0:amd64
sudo apt-get autoremove
sudo apt-get update

相关内容