相关疑难解决方法(0)

语言环境变量在远程 shell 中不起作用(perl:警告:设置语言环境失败。)

我有一个全新的 ubuntu 12.04 安装。当我连接到远程服务器时,出现如下错误:

~$ ssh example.com sudo aptitude upgrade
...
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 33, in <module>
    from ALChacks import *
  File "/usr/share/apt-listchanges/ALChacks.py", line 32, in <module>
    sys.stderr.write(_("Can't set locale; make sure $LC_* and $LANG are correct!\n"))
NameError: name '_' is not defined
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TIME = "de_DE.UTF-8",
    LC_MONETARY = "de_DE.UTF-8",
    LC_ADDRESS = "de_DE.UTF-8",
    LC_TELEPHONE = "de_DE.UTF-8",
    LC_NAME …
Run Code Online (Sandbox Code Playgroud)

ssh locale

98
推荐指数
5
解决办法
10万
查看次数

标签 统计

locale ×1

ssh ×1