首先在Ubuntu中添加源deb http://www.fyma.ucl.ac.be/ubuntu gutsy contrib安装OOoLatex出错,于是使用sudo dpkg –purge –force-remove-reinstreq ooolatex强制删除,也出错:
dpkg – warning, overriding problem because –force enabled:
Package is in a very bad inconsistent state – you should
reinstall it before attempting a removal.
(Reading database … 242056 files and directories currently installed.)
Removing ooolatex …
sed: can’t read /usr/lib/openoffice/share/config/soffice.cfg/modules/simpress/accelerator/default.xml/default.xml: Not a directory
dpkg: error processing ooolatex (–purge):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
ooolatex
解决办法:
1.删除文件 /usr/lib/openoffice/share/config/soffice.cfg/modules/simpress/accelerator/default.xml(default.xml可以先移到别的地方,删完后再移回);
2.执行sudo dpkg –purge –force-remove-reinstreq ooolatex