Locale Configuration Issue on Ubuntu 12.04

From Zam Wiki
Revision as of 19:17, 26 May 2014 by Zam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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