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/
No comments: