0
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 3 years have passed since last update.

localeでwarning

Posted at

##warning内容
デフォルトのロケートが混在しており,sshのを行った際に,warningが出ました。

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_MONETARY = "ja_JP.UTF-8",
LC_PAPER = "ja_JP.UTF-8",
LC_MEASUREMENT = "ja_JP.UTF-8",
LC_TIME = "ja_JP.UTF-8",
LC_NUMERIC = "ja_JP.UTF-8",
LANG = "ja_jp.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

##対応
設定します。以下root権限必須
①以下のコマンドを入れ,「ja_JP.UTF-8 UTF-8」のコメントアウトを消します。
(warning内容がja_JP.UTF-8 UTF-8でなければ順するように読み替えてください)

 vi /etc/locale.gen 

②以下のコマンドを入れ,localeを作成します。

 locale-gen

③設定の確認をします。
localeと入力し,設定の確認を行います。

root@kali:/etc/ssh# locale
LANG=ja_JP.UTF-8
LANGUAGE=ja_JP:ja
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC=ja_JP.UTF-8
LC_TIME=ja_JP.UTF-8
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY=ja_JP.UTF-8
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER=ja_JP.UTF-8
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT=ja_JP.UTF-8
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

これにより,worningがなくなりました。

参考リンク

Banana Pi でOMV : ロケール設定
Locale 設定警告の回避

0
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
0
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?