如何克服因删除/ usr / share / doc-base中的文件而导致的dpkg错误?

每当我在命令行通过APT运行时,我都会收到以下错误消息:

Setting up doc-base (0.10.6) ... Processing 2 added doc-base files... Cannot open file `/usr/share/doc-base/python-openbabel-pybel' for reading: No such file or directory. dpkg: error processing package doc-base (--configure): subprocess installed post-installation script returned error exit status 3 Setting up ballview (1.4.2+20140406-1) ... Errors were encountered while processing: doc-base E: Sub-process /usr/bin/dpkg returned an error code (1) 

它是在我愚蠢地跑了之后开始的:

 sudo rm /usr/share/doc-base/python-openbabel-pybel 

为了回应我在尝试重新安装BALLView后收到的另一个错误(试图克服这个问题 ):

 Error while merging /usr/share/doc-base/python-openbabel-openbabel with /usr/share/doc-base/python-openbabel-pybel: format html already defined. 

尝试运行sudo apt-get install --reinstall python-openbabel 。 该文件来自此软件包,希望在重新安装时不会出错。

我有一个类似的问题,它通过运行这些命令解决:

 sudo rm /var/lib/dpkg/info/doc-base.* sudo apt-get install doc-base 

在这个答案的帮助下发现: 未能安装doc-base