Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 7290  / 3 Years ago, fri, august 20, 2021, 8:55:12

I once turned my system to Chinese, now I cannot set it back to English.
I tried to change the order in Language Settings, but it doesn't work.



enter image description here



Chinese is always at the top. Even if I delete the language package of Chinese, it still remains. The menu of the system will return english, but all the softwares as well as the top bar remains in Chinese.



I also tried to reset /etc/default/locale and /etc/environment but it doesn't work.



root@ks356457:~# cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LANGUAGE="en_US:en_GB:zh_CN:de_DE:en_AU:en_CA:en_NZ:en"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
root@ks356457:~# cat /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en_GB:zh_CN:de_DE:en_AU:en_CA:en_NZ:en"
LC_ALL="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
root@ks356457:~# echo $LANG $LANGUAGE
zh_CN.UTF-8 zh_CN:en


This is a remote server and I use remote desktop via X2GO so I can't set the language before I log in as a local machine, either.



How do I get English back? Thanks a lot.


More From » language

 Answers
6

First of all, to be ensure that Chinese language packs are removed, give



sudo apt-get remove language-pack-gnome-nan*
sudo apt-get remove language-pack-gnome-zh*
sudo apt-get autoremove


commands. If you reset /etc/default/locale file as described in here, issue



localedef --list-archive 


command. If it generates an output like



en_US.utf8
zh_CN.utf8
zh_SG.utf8


this, run



sudo localedef --delete-from-archive zh_CN.utf8
sudo localedef --delete-from-archive zh_SG.utf8
sudo locale-gen


commands. After these commands you still see Chinese, write



cat ~/.pam_environment


command. If you see anything related to Chinese like



LANGUAGE=en_US:zh_CN:en


this, just delete "zh_CN" from the file by using Gedit. Then give the final command



sudo locale-gen


I hope this will help to solve your problem.


[#37487] Sunday, August 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;