Skip to content

Instantly share code, notes, and snippets.

@sushantsahu1987
Forked from okaufmann/README.md
Created June 21, 2021 12:29
Show Gist options
  • Save sushantsahu1987/131370fd98a837cf5b2f7fb175d7cede to your computer and use it in GitHub Desktop.
Save sushantsahu1987/131370fd98a837cf5b2f7fb175d7cede 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