Here is my problem: I run Ubuntu and haven't ever had any trouble with locales. Then I installed a program offline by downloading a *.deb file. Since then I get this error message every time I touch the command line:
cannot set lc_all to default locale: no such file or directory
When I try to run a perl program it flings the following error message at me:
perl: warning: setting locale failed
Anything that uses Gtk also complains about this problem, and as a consequence some of my programs have quit working altogether. Other users seem to have the same problem but even though there are numerous forum questions about this issue I have not come across an intelligent answer and advice on how to fix it anywhere. Here are the different forum entries:
These are all different users asking the same question, some of whose problems are solved by
dpkg -reconfigure locales
None of the methods suggested worked for me as well as some of the others who had the same problem.
Here is the output of the command locale:
(CA stands for Canada and shouldn't make a difference. When I run locale-gen the en_CA.UTF-8 is one of the locales indicated as up-to-date.)
Here is /etc/environment:
Here are the files in /usr/lib/locale:
I am just afraid I have to reinstall the whole system if I can't fix this one. It seems to be a problem bugging a lot of people and I haven't seen a satisfactory solution.