语言环境变量在远程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 …