Locale Configuration Issue on Ubuntu 12.04

From Zam Wiki
Jump to: navigation, search

Have you encountered problem like this when you login to your server via ssh?

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

It’s no so difficult to fix this annoying warning but as usual, the hardest part is to find the right solution. So here what I’ve done to fix the problem:

[email protected]:~# locale-gen en_US.UTF-8
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Generating locales...
  en_US.UTF-8... done
Generation complete.

Then this command to complete it:

[email protected]:~# dpkg-reconfigure locales
Generating locales...
  en_US.UTF-8... up-to-date
Generation complete.
blog comments powered by Disqus