Failed to set locale, defaulting to C.UTF-8 Print

  • locale, utf-8, glibc
  • 3

Some default OS is not install with english language pack and end up with following error:

Failed to set locale, defaulting to C.UTF-8

This usually seen in CentOS 8, RockyLinux 9.

How to resolve:

1) yum install -y glibc-langpack-en

2) localectl set-locale LANG=en_US.UTF-8

and verify after complete above steps.

[root@demo ~]# localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us


Was this answer helpful?

« Back