I want to switch to French locale. So I tried the below command:
myUbundu@myUbundu-desktop:~$ export LC_ALL=fr_FR
But I am getting the warning
-bash: warning: setlocale: LC_ALL: cannot change locale (fr_FR)
How to set the locale to French? Do I need to install additional packages?
Try the following commands
I've had the same issue, and none of the answers worked, except
dpkg-reconfigure locales
. But it is too time consuming to do it this way. Just uncomment all the locales you need in/etc/locale.gen
and runlocale-gen
. Or do it from the command line (as root):I have fought with this for a week or so.
The most reliable (and easiest too) for me was to edit my profile file with
An add this language variables to be set at every login
You need to log out and back in for the change to take effect.
Try installing language pack for French, e.g.
For any other language, run:
check-language-support -l CODE
to check the supported packages, e.g.Check also: LC_ALL: cannot change locale.
UTF-8
Here is the
UTF-8
version of the most voted answer.I received the following error:
Issuing the following command sufficed to get rid of this
bash
warning:P.S.: The Irish locale
en_IE.UTF-8
provides English language with euro € as a currency.