You'll get the following error in
Raspbian when locale is not properly set.
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
You can easily fix this via
Raspberry Pi Software Configuration Tool (
Steps to fix setlocale error in Raspberry Pi (Raspbian):
from the command line.
from the main interface.
from the menu.
De-select locales that you don't need (optional).
is installed by default and could be removed.
from the list and press
in the next screen
The selected locales will be generated and you should no longer get the error.
Generating locales (this might take a while)...
Discuss the article:
Comment anonymously. Login not required.