LoginSignup
150
137

More than 3 years have passed since last update.

Debian/Ubuntuのデフォルトロケールを変更する

Last updated at Posted at 2014-05-14

OSインストール時に英語を選択していた場合、

LANG=ja_JP.UTF-8

にするとaptなどを実行したときにWarningが表示されてしまうことがあります。
そんなときに以下の設定をします。

Debian

$ sudo apt-get install locales
$ sudo vim /etc/locale.gen
ja_JP.UTF-8の行のコメントを解除
$ sudo locale-gen
$ sudo update-locale LANG=ja_JP.UTF-8

Ubuntu

$ sudo apt install language-pack-ja
$ sudo update-locale LANG=ja_JP.UTF-8
150
137
3

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
150
137