On a newly setup Ubuntu 10.04 LTS machines, you may encounter the following error, when running commands or trying to auto complete or whatever;
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
Here’s the fix – open up the nano with the default setlocate
sudo nano /etc/default/locale
Update the contents of the file such that it reads as the one below – you can select your own language settings – like en_IN or en_GB
LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_ALL="en_US.UTF-8"
To temporarily get started without a server reboot, use the following command
We should be good.