2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

apt-getでSetting locale faildが出た時のメモ

Posted at

リモートでraspberry piにvncサーバーをインストールしようとした際に気がついたのでメモ。

環境

  • ログイン元:Mac OSX 10.10.5 Yosemite
  • ログイン先:Raspberry Pi 1 model B Linux raspberrypi 3.2.27

状態

vncサーバーをインストールしようとして

$ sudo apt-get install tightvncserver

apt-getがこんなログを吐いていました。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:",
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.

ん??
LANGが"en_US"になっている?

調べるとここが出てきた

ここでローカルの$LANGをechoしてみましょう。

$ echo $LANG
ja_jp.UTF-8

oh...
では早速OSX側のssh_configを見てみます。

$ cat /etc/ssh_config

発見。

 Host *
   SendEnv LANG LC_*

ここがログイン時にリモート側に環境変数を送っているっぽいのでコメントアウト。

 Host *
 #  SendEnv LANG LC_*

そしてapt-getでも問題なくインストールできました。

参考サイト

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?