卸载强制删除所有 emacs*

分享于 

3分钟阅读

ubuntu

  繁體

问题

emacs的apt包存在bug:


>>Error occurred processing debian-ispell.el: File error (("Opening input file""no such file or directory""/usr/share/emacs23/site-lisp/dictionaries-common/debian-ispell.el"))


>>Error occurred processing ispell.el: File error (("Opening input file""no such file or directory""/usr/share/emacs23/site-lisp/dictionaries-common/ispell.el"))


>>Error occurred processing flyspell.el: File error (("Opening input file""no such file or directory""/usr/share/emacs23/site-lisp/dictionaries-common/flyspell.el"))


emacs-install: /usr/lib/emacsen-common/packages/install/dictionaries-common emacs23 failed at /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 30.


dpkg: error processing emacs23-lucid (--configure):


 subprocess installed post-installation script returned error exit status 1


dpkg: dependency problems prevent configuration of emacs:


 emacs depends on emacs23 | emacs23-lucid | emacs23-nox; however:


 Package emacs23 is not installed.


 Package emacs23-lucid which provides emacs23 is not configured yet.


 Package emacs23-nox which provides emacs23 is not installed.


 Package emacs23-lucid is not configured yet.


 Package emacs23-nox is not installed.


dpkg: error processing emacs (--configure):


 dependency problems - leaving unconfigured


No apport report written because the error message indicates its a followup error from a previous failure.


 Errors were encountered while processing:


 emacs23-lucid


 emacs


E: Sub-process /usr/bin/dpkg returned an error code (1)



它总是在处理这个bug之前,我做了google搜索,在Launchpad上发现了一些提示:


sudo apt-get install --reinstall --purge emacsen-common




答案1

解决方法是执行满足包脚本所需的操作,或者注释掉包脚本中的有问题的命令,你遇到的软件包脚本位于/var/lib/dpkg/info/emacs23-lucid.postinst ,失败的特定命令是/usr/lib/emacsen-common/emacs-install ${FLAVOR}

你首先应该尝试修复潜在的问题,这里缺少/usr/share/emacs23三个文件,它们应该是指向/usr/share/emacs下相应文件的符号链接,如果断开了符号链接,请尝试删除它们;如果/usr/share/emacs23下的文件不存在,但/usr/share/emacs下的文件确实不存在,请尝试创建符号链接。


for  Emacs  卸载  APT