Skip to content

Instantly share code, notes, and snippets.

@pierot
Forked from okaufmann/README.md
Created February 25, 2022 08:13
Show Gist options
  • Save pierot/7d36a56ffe4a8b9035f64599dd33fe6c to your computer and use it in GitHub Desktop.
Save pierot/7d36a56ffe4a8b9035f64599dd33fe6c 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