如何重新安装软件包


20

安装libebml3时出现此错误:

Errors were encountered while processing:
libebml3:i386
Error in function: 
dpkg: error processing libebml3:i386 (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.

我怎样才能解决这个问题?

Answers:


20

由于我碰巧遇到另一个软件包的相同问题,想要重新安装,并且答案中的所有方法要么不执行任何操作,要么先卸载整个系统再重新安装,所以我得出了一个解决方案。

sudo aptitude reinstall libebml3:i386

当然,必须有另一种解决方案来强制使用apt-get而不是aptitude重新安装软件包。

sudo apt-get install --reinstall libebml3:i386

1
很好,除非您需要重新安装适合性的软件包(例如libboost_iostreams)。
Tomasz Gandor

1
使用man apt-get解决方案出现:--reinstall Re-Install packages that are already installed and at the newest version.
JB。和莫妮卡。

6
dpkg -r libebml3:i386
sudo apt-get update
sudo apt-get install -f
sudo apt-get upgrade

在终端中执行这些步骤。


3

您可以通过在终端中输入以下命令来删除程序:

sudo apt-get remove --purge libebml3
sudo apt-get install libebm13
sudo apt-get update
sudo apt-get upgrade

2

在终端中输入下列命令(按Ctrl+ ALT+ t):

sudo dpkg -p libebml3:i386
sudo apt-get update
sudo apt-get install -f
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.