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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay