Board logo

標題: Raspberry Pi —— How to set the locale of en_US.UTF-8 [打印本頁]

作者: 角色    時間: 2019-2-12 22:44     標題: 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
  1. LANG=en_US.UTF-8
  2. LC_ALL=en_US.UTF-8
  3. LANGUAGE=en_US.UTF-8
複製代碼
.

Reboot the unit
  1. sudo reboot
複製代碼
.

3)Execute the following commands:
  1. sudo locale-gen en_US.UTF-8
  2. 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




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2