首先,我想告诉你,我已经为我的问题尝试了很多解决方案,但没有一个能帮助我。 (我试过这个例子:http://ubuntuforums.org/showthread.php?t=1346581和这个(http://ubuntuforums.org/showthread.php?t=1346581))
我的问题是,当我尝试使用ssh连接到我的Raspberry pi2时,收到以下消息:
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 21 13:25:48 2015 from 192.168.10.1
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
毋庸置疑,当我尝试进行" apt-get upgrade"或尝试在我的树莓中安装新的应用程序,我得到了与语言有关的错误。这就是我开始寻找解决方案的原因......你能帮助我吗?我将不胜感激!
其他一些信息:
当我输入" locale"在我的覆盆子上,我收到了以下消息:
pi@raspberrypi ~ $ locale
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
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
如果我在笔记本电脑上写相同的命令(我想使用ssh从这台笔记本电脑连接到rasberry):
mirind4@mirind4-pc:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
提前致谢!
答案 0 :(得分:0)
您似乎无权编辑“本地”文件。
答案 1 :(得分:0)
您环境中的某些内容正在设置LC_ALL=en_US.UTF-8
。仅通过LANG=en_US.UTF-8
/etc/locale.conf
就足够了。