0
1

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

CentOS8でロケールをja_JP.utf8にできない

Last updated at Posted at 2019-12-01

環境

  • CentOS Linux release 8.0.1905 (Core)

現象

入れたてのCentOS8でlocalectl set-locale LANG=ja_JP.utf8したらdnfするたびにLANG=Cがどうのとエラーがでる。

原因

localeにja_JP.utf8がない。

shell
localectl list-locales
 C.utf8
 en_AG
 en_AU
 en_AU.utf8
 ...

対策

localeにja_JP.utf8を追加する。

shell
 localedef -i /usr/share/i18n/locales/ja_JP -f UTF-8 /usr/lib/locale/ja_JP.UTF-8
 localectl set-locale LANG=ja_JP.utf8
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?