138
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

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

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
138
Help us understand the problem. What are the problem?