コマンドラインで 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のインストールに失敗しました