首先,我真的很抱歉表现得太聪明了。但希望你能在我现在的情况下帮助我。
在Ubuntu12.04.2安装中,我遇到了一些与emacs有关的问题。所以我决定从头开始重新安装所有的东西。我采取的步骤是,
sudo apt-get autoremove emacs24
cd /usr/share
sudo rm -r emacs
sudo rm -r emacs24现在,每当我试图安装emacs,它告诉我,它找不到ispell,飞招和debian-ispell和安装未完成,dpkg错误。我能做些什么来解决这个问题?
(Reading database ... 292802 files and directories currently installed.)
Unpacking emacs (from .../emacs_24.1+1-2~ppa1~precise1_all.deb) ...
Setting up emacs23 (23.3+1-1ubuntu9.1) ...
emacs-install emacs23编辑:这是我得到的输出,如果有人感兴趣的话
install/dictionaries-common: Byte-compiling for emacsen flavour emacs23
>>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 4.
dpkg: error processing emacs23 (--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 configured yet.
Package emacs23-lucid which provides emacs23 is not installed.
Package emacs23-lucid is not installed.
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
emacs
E: Sub-process /usr/bin/dpkg returned an error code (1)发布于 2013-05-18 18:05:17
这个问题的解决办法是绝对不平凡的。我做的第一件事是安装字典--通用软件包,因为这是导致初始问题的原因。
sudo apt-get install --reinstall dictionaries-common从那以后,我就解决了一个又一个问题。我手动收集有问题的文件,并将它们放在需要的地方,这就是解决问题的原因。从这里吸取的一个重要教训是,永远不要在任何情况下处理系统文件。
发布于 2013-05-14 10:23:09
要下载所有依赖项,请使用:
sudo apt-get install build-essential
sudo apt-get build-dep emacs我已经安装了emacs24,如果这对您有用的话:
sudo apt-get install emacs24
发布于 2013-05-14 10:20:24
尝试:sudo apt-get purge emacs24然后sudo apt-get install -f emacs24
https://askubuntu.com/questions/295234
复制相似问题