歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux服務器

Ubuntu中刪除安裝異常的OOoLatex

 添加源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

Copyright © Linux教程網 All Rights Reserved