Question
WARNING! Your environment specifies an invalid locale. This can affect your user experience significantly...
Hi everyone, just finished trying a new instance of ubuntu, first time logging in and got the following notification :
Changing password for root.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
_____________________________________________________________________
WARNING! Your environment specifies an invalid locale.
This can affect your user experience significantly, including the
ability to manage packages. You may install the locales by running:
sudo apt-get install language-pack-UTF-8
or
sudo locale-gen UTF-8
To see all available language packs, run:
apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
sudo touch /var/lib/cloud/instance/locale-check.skip
_____________________________________________________________________
Did try the following command :
sudo apt-get install language-pack-UTF-8
or
sudo locale-gen UTF-8
But still nothing happened, each time I’m installing a package, still invoking the same warning. Any clues what had happened?
Thanks,
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Debian or Ubuntu fix locales, example for en_US.UTF-8
Don’t worry, be happy.
Hi @sail7, when I typed in
locale
, I got:Then as you suggested, I tried:
export LANGUAGE=en_US.UTF-8; export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; locale-gen en_US.UTF-8
and I got:
-bash: locale-gen: command not found
I’ve been googling but haven’t found the solution. What else should I do?
Thanks a lot!
Edit the file /etc/default/locale :
sudo nano /etc/default/locale
And the file /etc/environment :
sudo nano /etc/environment