Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason, today, everytime I hit tab in the terminal this shows up:

cat bash: warning: setlocale: LC_CTYPE: cannot change locale (en_CA)

Display all 150 possibilities? (y or n)

This particular one happens when I type cat then hit TAB. I never changed any setting or anything. Anyone know what's going on?

share|improve this question
Does it still happen if you turn off the completion added by the bash-completion package for cat? complete -r cat and then cat <TAB> again. – geirha May 3 '11 at 6:32
well, first of all, please don't double post. I see you have also asked this. – theTuxRacer May 3 '11 at 6:40
up vote 1 down vote accepted

In the console, type

sudo dpkg-reconfigure locales

Select the locale that is relevant, and press spacebar. You will see an asterisk indicating the selected locale. Press Tab, to highlight OK. THen press Enter. Same for the next screen. That should regenerate the environment locale for your installation of Ubuntu.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.