一般ユーザーでは普通に日本語使えるんだけど、rootだとなんでか日本語が文字化けする。 という話
今どきのDebianのインストーラでは、「LANGを日本語にしていると文字化けするからCにしとくね」
って感じで .profile を直してくれる
# ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi # Installed by Debian Installer:" # no localization for root because ja_JP.UTF-8" # cannot be properly displayed at the Linux console" LANG=C LANGUAGE=C
あとからデフォルトのロケールを en_US.UTF-8 に変更してもここを直してくれるわけではないので、ここを削除かコメントアウトする