perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "C",
LC_NUMERIC = "C",
LC_MEASUREMENT = "C",
LC_TIME = "C",
LANG = "en"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
------
locale 修正設定
root@moco:~# vi .bashrc
export LC_ALL=ja_JP.UTF-8 //追加
/etc/ssh/ssh_configを確認
root@moco:~# vi /etc/ssh/ssh_config
# SendEnv LANG LC_* //コメントアウト
root@moco:~# locale-gen ja_JP.UTF-8
Generating locales...
ja_JP.UTF-8... up-to-date
Generation complete.
root@moco:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_MONETARY = "C",
LC_NUMERIC = "C",
LC_MEASUREMENT = "C",
LC_TIME = "C",
LANG = "en"
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
Generating locales...
en_US.UTF-8... done
ja_JP.UTF-8... up-to-date
Generation complete.
root@moco:~# vi /etc/default/locale
#LANG=en
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
#LC_NUMERIC=C
#LC_TIME=C
#LC_MONETARY=C
#LC_MEASUREMENT=C
root@moco:~# reboot