DEV Community

codemee
codemee

Posted on • Edited on

1

locale-gen 無法成功

如果 locale-gen 執行後雖然看到成功訊息, 但是執行 locale -a 卻看不到生成的語系, 很可能是生成語系的設定檔中該語系被註解掉了, 像是這樣:

$ sudo cat /etc/locale.gen | grep zh_TW
# lzh_TW UTF-8
# zh_TW BIG5
# zh_TW.EUC-TW EUC-TW
# zh_TW.UTF-8 UTF-8
Enter fullscreen mode Exit fullscreen mode

只要把註解移除, 再重新產生語系檔即可。

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More