XK0-004 · Question #529
An administrator was updating several systems and received the following warning for each one: No support Locale en_US.UTF-8. Which of the following should the administrator run to eliminate this warn
The correct answer is C. Option C. The 'No support Locale en_US.UTF-8' warning means the locale has not been generated on the system and must be compiled using the appropriate locale generation command.
Question
An administrator was updating several systems and received the following warning for each one:
No support Locale en_US.UTF-8. Which of the following should the administrator run to eliminate this warning?
Exhibit
Options
- AOption A
- BOption B
- COption C
- DOption D
How the community answered
(41 responses)- A7% (3)
- B2% (1)
- C88% (36)
- D2% (1)
Why each option
The 'No support Locale en_US.UTF-8' warning means the locale has not been generated on the system and must be compiled using the appropriate locale generation command.
Option A does not invoke the correct locale generation command or syntax needed to compile and register the en_US.UTF-8 locale on the system.
Option B does not address locale generation and therefore would not resolve the 'No support Locale' warning that appeared on each system.
The correct fix is to run 'locale-gen en_US.UTF-8', which compiles and installs the specified locale definition so the operating system and applications can use it. On systemd-based distributions, 'localectl set-locale LANG=en_US.UTF-8' can also configure the locale persistently. Option C uses the proper command to generate the missing locale and eliminate the warning across all affected systems.
Option D uses an incorrect command or arguments that would fail to generate the required locale, leaving the warning unresolved.
Concept tested: Linux locale generation and configuration
Source: https://man7.org/linux/man-pages/man8/locale-gen.8.html
Topics
Community Discussion
No community discussion yet for this question.
