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,

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I also used this script and everything now is working fine!

https://jee-appy.blogspot.mx/2016/02/set-locale-on-ubuntu-permanent-solution.html

I hope it could be useful!

I have the same problemsssss