Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Locale issues - Correct and sustainable fix?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
binaryanomaly
Posts: 3
Joined: 2018-05-13 18:43

Locale issues - Correct and sustainable fix?

#1 Post by binaryanomaly »

It feels like I had issues with locales since ever and I'd like to solve it now once and forever properly.

Code: Select all

sudo dpkg-reconfigure locales
and choosing "en_US.utf8" produces the following - which is exemplar for the errors that will then happen also with other apps:

Code: Select all

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
How do I fix this in a sustainable and correct manner?

I helped myself so far by placing

Code: Select all

export LC_ALL="en_US.UTF-8"
in /etc/environment which seems to make the error message disappear.

But it somehow doesn't feel right? What would be the proper way of fixing it?
Thanks.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Locale issues - Correct and sustainable fix?

#2 Post by Head_on_a_Stick »

deadbang

binaryanomaly
Posts: 3
Joined: 2018-05-13 18:43

Re: Locale issues - Correct and sustainable fix?

#3 Post by binaryanomaly »

Thanks. "en_US.UTF-8 UTF-8" is already in locale.gen and following the procedure in the "Manually" section doesn't make the error message go away:

Code: Select all

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
...

Post Reply