Thursday, December 1, 2011

How to Fix Error: bash: warning: setlocale: LC_CTYPE: cannot change locale (id_ID.UTF-8) in Ubuntu 11.04 / Linux Mint 12

If you get error/warning message similar to this when press Tab for bash command autocompletion :

bash: warning: setlocale: LC_CTYPE: cannot change locale (id_ID.UTF-8)

Solution is:
  1. Install the required locale. In my case this is the "id" :

    sudo apt-get install language-pack-id

  2. Reconfigure locales:

    sudo dpkg-reconfigure locales

Now bash Tab completion should work just fine. :-)

You can learn more about Ubuntu and Linux Mint in Ubuntu Unleashed 2011 Edition: Covering 10.10 and 11.04 (6th Edition) !

1 comment:

  1. I have the same issue but I only get the /bash: warning: setlocale: LC_CTYPE: cannot change locale message when I push the tab key from iTerminal, not in the VirtualBox console.

    ReplyDelete