Locale determines which language and encoding is used by your Linux system. If the wrong locale is chosen, you might see that the system messages or UI are in a foreign language or the character encoding has issues.
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="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"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
To change the locale, run sudo dpkg-reconfigure locales
. In the first dialog, make sure the locale you want is chosen. In the second dialog, choose the default locale. When you press OK, the system will generate locales if needed and set the default locale. You might need to logout and login from your desktop environment to see the current locale change.
If you see that the LANGUAGE
is still wrong, then you might need to go into the Language settings of Ubuntu to change the language used.
Tried with: Ubuntu 22.04