我正在登录 dev oracle linux 7 系统并在登录时注意到这些警告:
Last login: Thu Mar 24 15:23:29 2022 from x.x.x.x
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
所以我检查了系统上的所有语言环境并看到了这个;我只有最基本的系统语言环境。
$localectl list-locales
C.utf8
$ locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX
问题是,所有可用的语言环境在哪里?以及如何让他们回来?
我在下面回答了我自己的问题,在这里为其他人发帖。