Fix Setting locale failed


You may encounter this error very often on a fresh install.

One solution to fix this issue, first run the locale command to list the locales currently defined for your user account.

$ locale

The output will look something like this:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

To generate the missing locale and reconfigure locales, identify the name of your locale ( in my case de_DE.UTF-8), or use one another one that you prefer, such as en_US.UTF-8.



Then generate it using the following command:

$ sudo locale-gen "de_US.UTF-8"

And you’ll get the output:

Generating locales (this might take a while)...
  de_DE.UTF-8... done
Generation complete.

After which, reconfigure locales using the following command:

$ sudo dpkg-reconfigure locales

And you’ll receive the output:

Generating locales...
  de_DE.UTF-8... up-to-date
Generation complete.

And now you shouldn’t receive any more errors!

If you’ve encountered any issues with this short tutorial, please feel free to let us know in the comments or by contacting us via our social media channels, and we’ll get back to you as soon as possible.

 

Source and Reference :

https://draculaservers.com/tutorials/setting-locale-failed-ubuntu/



Fix Setting locale failed Fix Setting locale failed Reviewed by ilham.sp on January 11, 2021 Rating: 5

No comments:

Notice

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.Learn More

Powered by Blogger.