在ubuntu中卸载emacs时出错

时间:2014-03-20 14:57:36

标签: ubuntu emacs uninstall sage

我是Linux新手并使用Ubuntu。我试图在emacs中添加sage数学模式。我在〜/ .emacs文件夹中编辑site-start.el文件时做错了,emacs开始做一些有趣的事情。我错误地删除了〜/ etc中的emacs文件夹,我在其中进行了编辑。现在每当我在尝试卸载emacs时。我收到以下错误消息。有人可以帮我解决这个问题。 谢谢 阿尼尔

installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 322690 files and directories currently installed.)
Removing emacs ...
Setting up emacs23 (23.3+1-1ubuntu9.2) ...
emacs-install emacs23
install/dictionaries-common: Already byte-compiled for emacs23. Skipping ...
emacsen-common: Handling install of emacsen flavor emacs23
emacsen-common: byte-compiling for emacs23
cp: cannot stat `/etc/emacs/site-start.d/00debian-vars.el': No such file or directory
emacs-install: /usr/lib/emacsen-common/packages/install/emacsen-common emacs23 failed at         /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 2.
dpkg: error processing emacs23 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
emacs23
Error in function: 
Setting up emacs23 (23.3+1-1ubuntu9.2) ...
emacs-install emacs23
install/dictionaries-common: Already byte-compiled for emacs23. Skipping ...
emacsen-common: Handling install of emacsen flavor emacs23
emacsen-common: byte-compiling for emacs23
cp: cannot stat `/etc/emacs/site-start.d/00debian-vars.el': No such file or directory
emacs-install: /usr/lib/emacsen-common/packages/install/emacsen-common emacs23 failed at   /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 2.
dpkg: error processing emacs23 (--configure):
subprocess installed post-installation script returned error exit status 1

2 个答案:

答案 0 :(得分:1)

嗯,报告的错误就是这个......

cp: cannot stat `/etc/emacs/site-start.d/00debian-vars.el': No such file or di

根据你的说法,你手工删除(据我所知 - 你的报告不是很精确,所以有一些猜测工作正在进行。

您可以先尝试重新安装emacs,然后再卸载。或类似的东西

apt-get remove --force emacs23

一般情况下,您不希望手动删除/ etc中的文件;让你为你做这件事会更好。

答案 1 :(得分:-1)

最后通过欺骗错误来做到这一点。刚刚添加了提供错误的所述目录和文件。卸载脚本需要物理文件和目录路径。所以简单地添加路径就可以了。