Linux/Ubuntu/locale: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Rebuild == Then generate the missing locale and reconfigure locales to take notice: $ sudo locale-gen "en_US.UTF-8" Generating locales... en_US.UTF-8... done Genera...") |
No edit summary |
||
Line 7: | Line 7: | ||
en_US.UTF-8... done | en_US.UTF-8... done | ||
Generation complete. | Generation complete. | ||
Ask a bunch of questions, but skip and continue: | |||
$ sudo dpkg-reconfigure locales | $ sudo dpkg-reconfigure locales | ||
Line 14: | Line 16: | ||
ref: [https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue] | ref: [https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue] | ||
--- | |||
sudo update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 | |||
cat /etc/default/locale | |||
# File generated by update-locale | |||
LANG=en_US.UTF-8 | |||
LANGUAGE="en_US:" | |||
LC_CTYPE=en_US.UTF-8 | |||
- | |||
sudo echo "LC_ALL=en_US.UTF-8" >> /etc/environment | |||
sudo echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen | |||
sudo echo "LANG=en_US.UTF-8" > /etc/locale.conf | |||
sudo apt-get clean && apt-get update -y | |||
sudo apt-get install locales -y | |||
sudo locale-gen en_US.UTF-8 | |||
ref: | |||
ansible --version ERROR: Ansible requires the locale encoding to be UTF-8; Detected ISO8859-1 | |||
https://askubuntu.com/questions/1460877/gitgit-ansible-version-error-ansible-requires-the-locale-encoding-to-be-u |
Revision as of 09:41, 16 August 2024
Rebuild
Then generate the missing locale and reconfigure locales to take notice:
$ sudo locale-gen "en_US.UTF-8" Generating locales... en_US.UTF-8... done Generation complete.
Ask a bunch of questions, but skip and continue:
$ sudo dpkg-reconfigure locales Generating locales... en_US.UTF-8... up-to-date Generation complete.
ref: [1]
---
sudo update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
cat /etc/default/locale # File generated by update-locale LANG=en_US.UTF-8 LANGUAGE="en_US:" LC_CTYPE=en_US.UTF-8
-
sudo echo "LC_ALL=en_US.UTF-8" >> /etc/environment sudo echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen sudo echo "LANG=en_US.UTF-8" > /etc/locale.conf sudo apt-get clean && apt-get update -y sudo apt-get install locales -y sudo locale-gen en_US.UTF-8
ref:
ansible --version ERROR: Ansible requires the locale encoding to be UTF-8; Detected ISO8859-1 https://askubuntu.com/questions/1460877/gitgit-ansible-version-error-ansible-requires-the-locale-encoding-to-be-u