LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problems with locales (https://www.linuxquestions.org/questions/debian-26/problems-with-locales-4175593488/)

xstation 11-14-2016 01:37 AM

problems with locales
 
On debian 8 in a vps

I was getting this below

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

so I purged the locales then rinstalled when i want to reconfiure part of the output is like so




The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov 14 02:22:36 2016 from 106.208.22.57
root@mail:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN"
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
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Configuring locales
-------------------

Locales are a framework to switch between multiple languages and allow users to
use their language, country, characters, collation order, etc.

Please choose which locales to generate. UTF-8 locales should be chosen by
default, particularly for new installations. Other character sets may be useful
for backwards compatibility with older systems and software.

--------------------------------------------------
see they maybe so problem with reconfigure or maybe not?

goumba 11-14-2016 02:44 AM

Did you complete the reconfigure step? You make no mention of that.

If so, and still getting the warning, try running:

Code:

update-locale
as root.

Failing that, create /etc/default/locale, and in it, put your locale like such

Code:

LANG=en_US.UTF-8

Didier Spaier 01-07-2017 03:34 PM

I think that there is a problem with the in_IN locale in glibc, not Debian specific (Slackware derivative here):
Code:

didier[~]$ LANG=in_IN locale -k charmap
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
charmap="ANSI_X3.4-1968"
didier[~]$

This could be causing the issue.

Probably the file /usr/share/i18n/in_IN needs a review.

As a workaround I would tentatively set LANG to en_GB.UTF-8 that should be similar to in_IN.


All times are GMT -5. The time now is 03:00 AM.