Locale
From KevinWiki
Setting Locale Failed
If there are some warnings regarding Locale like below when run the command,
- Command
$ dpkg-reconfigure locales
- Result
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_AU.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory
it can be fixed with the following instruction.
- Command
$ apt-get install --reinstall language-pack-en
- Result
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: language-pack-en-base Recommended packages: language-support-en The following NEW packages will be installed: language-pack-en language-pack-en-base 0 upgraded, 2 newly installed, 0 to remove and 12 not upgraded. Need to get 265kB of archives. After this operation, 2281kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://us.archive.ubuntu.com hardy/main language-pack-en-base 1:8.04+20080415 [263kB] Get:2 http://us.archive.ubuntu.com hardy/main language-pack-en 1:8.04+20080415 [2038B] Fetched 265kB in 0s (356kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_AU.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Selecting previously deselected package language-pack-en-base. (Reading database ... 9100 files and directories currently installed.) Unpacking language-pack-en-base (from .../language-pack-en-base_1%3a8.04+20080415_all.deb)... Selecting previously deselected package language-pack-en. Unpacking language-pack-en (from .../language-pack-en_1%3a8.04+20080415_all.deb) ... Setting up language-pack-en (1:8.04+20080415) ... Setting up language-pack-en-base (1:8.04+20080415) ... Generating locales... en_AU.UTF-8... done en_BW.UTF-8... done en_CA.UTF-8... done en_DK.UTF-8... done en_GB.UTF-8... done en_HK.UTF-8... done en_IE.UTF-8... done en_IN.UTF-8... done en_NZ.UTF-8... done en_PH.UTF-8... done en_SG.UTF-8... done en_US.UTF-8... done en_ZA.UTF-8... done en_ZW.UTF-8... done Generation complete.
- To check if it is solved, enter the command
$ dpkg-reconfigure locales
- Result
Generating locales... en_AU.UTF-8... up-to-date en_BW.UTF-8... up-to-date en_CA.UTF-8... up-to-date en_DK.UTF-8... up-to-date en_GB.UTF-8... up-to-date en_HK.UTF-8... up-to-date en_IE.UTF-8... up-to-date en_IN.UTF-8... up-to-date en_NZ.UTF-8... up-to-date en_PH.UTF-8... up-to-date en_SG.UTF-8... up-to-date en_US.UTF-8... up-to-date en_ZA.UTF-8... up-to-date en_ZW.UTF-8... up-to-date Generation complete.