Raspberry Pi —— How to set the locale of en_US.UTF-8
本帖最後由 角色 於 2019-2-16 14:07 編輯
有很多时候因为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- LANG=en_US.UTF-8
- LC_ALL=en_US.UTF-8
- LANGUAGE=en_US.UTF-8
複製代碼 .
Reboot the unit.
3)Execute the following commands:- sudo locale-gen en_US.UTF-8
- sudo update-locale en_US.UTF-8
複製代碼 .
Then reboot the system and the locale issue has been complete.
Reference:
[1] https://raspberrypi.stackexchang ... ale-in-raspberry-pi |