bash: warning: setlocale: LC_ALL: cannot change locale

On an Ubuntu server, when i login, i get following error

-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

To fix this, run

echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen en_US.UTF-8

See Errors

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *