Skip to content

Instantly share code, notes, and snippets.

@okaufmann
Created December 18, 2019 18:27
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save okaufmann/79acf73fd9f41b0b189cc3c8c480eaf5 to your computer and use it in GitHub Desktop.
Save okaufmann/79acf73fd9f41b0b189cc3c8c480eaf5 to your computer and use it in GitHub Desktop.
Fix `warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` error on Raspberry PI

Run the following:

echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment