31
31

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.

WSL2のUbuntu 20.04を日本語化する

Posted at

概要

WSL2のUbuntu 20.04はデフォルトで英語モードなので日本語化する。

1.パッケージの更新とアップグレード

まずはパッケージの更新とアップグレードを行う。

$ sudo apt update && sudo apt upgrade

2.日本語言語パックのインストール

$ sudo apt -y install language-pack-ja

3.ロケールを日本語に設定

$ sudo update-locale LANG=ja_JP.UTF8

4.Ubuntu 20.04を再起動

[Ctrl]+[D]で終了。
再起動後にロケール設定を確認する。

$ locale
LANG=ja_JP.UTF8
LANGUAGE=
LC_CTYPE="ja_JP.UTF8"
LC_NUMERIC="ja_JP.UTF8"
LC_TIME="ja_JP.UTF8"
LC_COLLATE="ja_JP.UTF8"
LC_MONETARY="ja_JP.UTF8"
LC_MESSAGES="ja_JP.UTF8"
LC_PAPER="ja_JP.UTF8"
LC_NAME="ja_JP.UTF8"
LC_ADDRESS="ja_JP.UTF8"
LC_TELEPHONE="ja_JP.UTF8"
LC_MEASUREMENT="ja_JP.UTF8"
LC_IDENTIFICATION="ja_JP.UTF8"
LC_ALL=

5.日本語マニュアルのインストール

$ sudo apt -y install manpages-ja manpages-ja-dev

参考

31
31
1

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
31
31

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?