【问题标题】:error in uninstalling emacs in ubuntu在 ubuntu 中卸载 emacs 时出错
【发布时间】:2014-04-27 12:38:48
【问题描述】:

我是 Linux 新手并使用 Ubuntu。我试图在 emacs 中添加贤者数学模式。我在编辑 ~/.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

【问题讨论】:

标签: ubuntu emacs uninstallation sage


【解决方案1】:

嗯,报错是这样的……

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

根据您所说,您手动删除了(据我所知-您的报告不是很准确,因此正在进行一些猜测工作。

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

apt-get remove --force emacs23

一般来说,您不希望手动删除 /etc 中的文件;最好让 apt 为你做这件事。

【讨论】:

    【解决方案2】:

    最后通过愚弄错误做到了。刚刚添加了上述目录和文件,它们给出了错误。卸载脚本需要物理文件和目录路径。因此,只需添加路径即可。

    【讨论】:

    猜你喜欢
    • 2015-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-11
    • 2017-03-28
    • 2018-02-19
    • 2011-08-23
    • 2014-05-19
    相关资源
    最近更新 更多