電訊茶室's Archiver

角色 發表於 2019-2-12 22:44

Raspberry Pi —— How to set the locale of en_US.UTF-8

[i=s] 本帖最後由 角色 於 2019-2-16 14:07 編輯 [/i]

有很多时候因为locale没有set好!在update package时候会有很多error messages,所以我先把locale set好[1]!

1)Edit /etc/locale.gen and uncomment the line with en_US.UTF-8 e.g. sudo nano /etc/locale.gen

2)Run sudo nano /etc/default/locale (and remove LANG=en_GB.UTF-8) and add the following lines[code]
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANGUAGE=en_US.UTF-8
[/code].

Reboot the unit[code]
sudo reboot
[/code].

3)Execute the following commands:[code]
sudo locale-gen en_US.UTF-8
sudo update-locale en_US.UTF-8
[/code].

Then reboot the system and the locale issue has been complete.

Reference:
[1] [url]https://raspberrypi.stackexchange.com/questions/43550/unable-to-reconfigure-locale-in-raspberry-pi[/url]

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.