每当我在命令行通过 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.
答案1
尝试运行sudo apt-get install --reinstall python-openbabel
。该文件来自此包,希望重新安装时不会出现任何错误。
答案2
我遇到了类似的问题,通过运行以下命令解决了该问题:
sudo rm /var/lib/dpkg/info/doc-base.*
sudo apt-get install doc-base
通过这个答案的帮助发现: 无法安装 doc-base