Skip to content

Instantly share code, notes, and snippets.

@tkhduracell
Last active February 19, 2023 13:09
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save tkhduracell/f54734c18ef1a2fd99e9 to your computer and use it in GitHub Desktop.
Save tkhduracell/f54734c18ef1a2fd99e9 to your computer and use it in GitHub Desktop.
Fix locale on raspberry pi (raspbian) "Setting locale failed."
#
# How to get rid of the locale warning on raspberry pi
#
sudo sed -i "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" -i /etc/locale.gen
sudo locale-gen en_US.UTF-8
sudo update-locale en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
@kdambekalns
Copy link

But what does subversion have to do with it? Clearly unrelated…

@tkhduracell
Copy link
Author

Haha, yes, obviously. Thanks for bringing it up :)

@ChienDesEnfers
Copy link

Very helpful! Thank you very much for that simple solution!

@DonRichards
Copy link

Thanks!!!

@lvincek
Copy link

lvincek commented Feb 16, 2021

Thanks, that just got me through my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment