添加源deb安装OOoLatex出错,于是使用sudodpkg--purge--force-remove-reinstreqooolatex强制删除,也出错:
dpkg-warning,overridingproblembecause--forceenabled:
Packageisinaverybadinconsistentstate-youshould
reinstallitbeforeattemptingaremoval.
(Readingdatabase...242056filesanddirectoriescurrentlyinstalled.)
Removingooolatex...
sed:can''tread/usr/lib/openoffice/share/config/soffice.cfg/modules/simpress/accelerator/default.xml/default.xml:Notadirectory
dpkg:errorprocessingooolatex(--purge):
subprocesspost-removalscriptreturnederrorexitstatus2
Errorswereencounteredwhileprocessing:
ooolatex
解决办法:
1.删除文件/usr/lib/openoffice/share/config/soffice.cfg/modules/simpress/accelerator/default.xml(default.xml可以先移到别的地方,删完后再移回);
2.执行sudodpkg--purge--force-remove-reinstreqooolatex
下载本文示例代码
阅读(301) | 评论(0) | 转发(0) |