Help us understand the problem. What is going on with this article?

Windows 10 の Linux 環境 (WSL) で日本語 man を表示する (Debian)

More than 1 year has passed since last update.

WSL に Debian を入れたけど日本語マニュアルが表示されない!ということで設定。

とりあえずおまじない。

# apt update
# apt upgrade
# uname -a
Linux H97-Pro 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 GNU/Linux

まず man コマンドが無い!less コマンドもない!

# apt install man less

man コマンドと less コマンドが入った。
man を叩いてもマニュアル自体が無い!

# apt install manpages manpages-dev

manpage (英語) が入った。
man を叩いても英語しか出ない!

# apt install manpages-ja manpages-ja-dev

日本語の manpage が入った。
やっぱり英語しか出ない!

# export LANG=ja_JP.UTF-8

LANG が違うのか?まだ見えない!

# dpkg-reconfigure locales
....
 │    [ ] iu_CA UTF-8                                                                                            ↑   │
 │    [ ] ja_JP.EUC-JP EUC-JP                                                                                    ▒   │
 │    [*] ja_JP.UTF-8 UTF-8                                                                                      ▒   │
 │    [ ] ka_GE GEORGIAN-PS                                                                                      ▒   │
 │    [ ] ka_GE.UTF-8 UTF-8                                                                                      ▒   │
 │    [ ] kk_KZ PT154                                                                                            ▮   │

ja_JP.UTF-8 UTF-8 にチェックを点けて を選択。

# man man
MAN(1)                 マニュアルページユーティリティー                 MAN(1)

名前
       man - オンラインマニュアルのインターフェース
...

成功!

jp_yen
おうちに住んでます
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした