[CLOSED]Incorrect locale definitions after #7.1 re-install

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[CLOSED]Incorrect locale definitions after #7.1 re-install

Postby Myles » Jun 21st, '20, 10:31

Hi all,
Several weeks ago my desktop suffered an unknown problem that caused it to not be able to find my boot device. Nothing I could do would get it to find where Mageia was on my SSD. So I cut my losses and did a complete re-install. Boy am I sorry I did that - my system has been plagued by all sorts of gremlins since then. A few I have managed to rectify, but this one I don't know what is causing this or what to do to fix it.

When I execute some cmds in the terminal, prefaced before the result is the following:

Code: Select all
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME=en_AU.UTF-8
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY=en_AU.UTF-8
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT=wbp_AU.UTF-8
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=


I have searched online and found numerous hits of this but nothing pointing me to a way to fix my particular problem.

One of the suggestions was to reselect your locale language and re-install it. I looked in MCC and there is ALL sorts of languages for some really off-beat countries - BUT no entry for locale-au (Australia)!!???

And where is this "file or directory" it's looking for???

Also I ran into this associated (?) problem today when I was using K3B to burn a DVD/RW:

Code: Select all
System locale charset is ANSI_X3.4-1968
Your system's locale charset (i.e. the charset used to encode filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally. Most likely the locale is not set at all. An invalid setting will result in problems when creating data projects.
Solution: To properly set the locale charset make sure the LC_* environment variables are set. Normally the distribution setup tools take care of this


So has anyone got any ideas on how I could fix this problem?

Any assistance greatly appreciated.
Last edited by Myles on Jun 29th, '20, 08:23, edited 1 time in total.
Myles,
Canberra, Australia
User avatar
Myles
 
Posts: 219
Joined: Apr 29th, '12, 10:05

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby doktor5000 » Jun 21st, '20, 11:51

Myles wrote:One of the suggestions was to reselect your locale language and re-install it. I looked in MCC and there is ALL sorts of languages for some really off-beat countries - BUT no entry for locale-au (Australia)!!???

One question mark is sufficient.
As Australia uses english language and locale, why should it have a separate locales package? All english locales are contained in locales-en.

Please post the output of
Code: Select all
locale
locale -a
rpm -qa|grep -i locales
cat /etc/locale.conf
cat /etc/sysconfig/i18n

Also, during reinstallation, what did you select here? https://doc.mageia.org/installer/7/en/c ... ocale.html
And what did you select afterwards in your desktop environment regarding locale settings ?


edit doktor5000:
FWIW, did you crosspost this here? https://www.linuxquestions.org/question ... 175677258/
Please keep in mind that crossposting is disregarded.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15830
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby Myles » Jun 22nd, '20, 03:22

doktor,
Here is the result of the cmds:

Code: Select all
[myles@Bilbo ~]$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LC_COLLATE=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_MESSAGES=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_MEASUREMENT=wbp_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_ALL=
[myles@Bilbo ~]$ locale -a
C
CP1251
C.UTF-8
en_AG
en_AG.utf8
en_AU
en_AU.iso88591
en_AU.utf8
en_AU.UTF-8
en_BE
en_BE@euro
en_BE.iso88591
en_BE.utf8
en_BE.UTF-8
en_BW
en_BW.iso88591
en_BW.utf8
en_BW.UTF-8
en_CA
en_CA.iso88591
en_CA.utf8
en_CA.UTF-8
en_DK
en_DK.iso88591
en_DK.utf8
en_DK.UTF-8
en_GB
en_GB.iso88591
en_GB.utf8
en_GB.UTF-8
en_HK
en_HK.iso88591
en_HK.utf8
en_HK.UTF-8
en_IE
en_IE@euro
en_IE.iso88591
en_IE.utf8
en_IE.UTF-8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ
en_NZ.iso88591
en_NZ.utf8
en_NZ.UTF-8
en_PH
en_PH.iso88591
en_PH.utf8
en_PH.UTF-8
en_SC.utf8
en_SC.UTF-8
en_SG
en_SG.iso88591
en_SG.utf8
en_SG.UTF-8
en_US
en_US.iso88591
en_US.utf8
en_US.UTF-8
en_ZA
en_ZA.iso88591
en_ZA.utf8
en_ZA.UTF-8
en_ZM
en_ZM.utf8
en_ZW
en_ZW.iso88591
en_ZW.utf8
en_ZW.UTF-8
ISO-8859-1
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-5
ISO-8859-7
ISO-8859-9
KOI8-R
KOI8-U
POSIX
UTF-8
[myles@Bilbo ~]$ rpm -qa|grep -i locales
locales-2.29-3.mga7
locales-en-2.29-3.mga7
[myles@Bilbo ~]$ cat /etc/locale.conf
COUNTRY=AU
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en_GB:en
[myles@Bilbo ~]$ cat /etc/sysconfig/i18n
COUNTRY=AU
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en_GB:en
LC_ADDRESS=en_AU.UTF-8
LC_COLLATE=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MESSAGES=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
SYSFONT=lat1-16
[myles@Bilbo ~]$


I don't remember if I specifically defined a Timezone (I think it defaulted to Sydney - which is the same for me here in Canberra), but I definitely chose Oceania > Australia. (Is that what you mean by
doktor said:
And what did you select afterwards in your desktop environment regarding locale settings ?


edit doktor5000:
FWIW, did you crosspost this here? https://www.linuxquestions.org/question ... 175677258/
Please keep in mind that crossposting is disregarded.

As for posting first in LQ, I didn't want to bug these forums yet again so I thought I'd see if anyone could help me in the LQ forum - no, I had no replies at all, so I posted here.
Myles,
Canberra, Australia
User avatar
Myles
 
Posts: 219
Joined: Apr 29th, '12, 10:05

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby doktor5000 » Jun 22nd, '20, 13:20

I don't see an issue with the settings in general. en_AU is contained in locales-en, which is installed. I'd suggest reinstalling locales-en:
Code: Select all
urpmi --replacepkgs --replacefiles locales-en

Apart from that, there' aren't any such settings regarding locale in ~/.bashrc or maybe ~/.profile or the like, maybe restored from a backup ?


Myles wrote:I don't remember if I specifically defined a Timezone (I think it defaulted to Sydney - which is the same for me here in Canberra), but I definitely chose Oceania > Australia. (Is that what you mean by
doktor said:
And what did you select afterwards in your desktop environment regarding locale settings ?


No. During the installation or with localedrake, you set the systemwide defaults regarding locale settings.

Although in the desktop environment in your user session, you can still customize certain settings, e.g. regarding currency or the date/time or measurement formats.
Question was, whether you did any such customizations after the installation.

In particular, I'd like to find out where you got the setting LC_MEASUREMENT=wbp_AU.UTF-8 from, because while that might be a valid measurement locale, there are no locale files in any package, so that might cause the error.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15830
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby Myles » Jun 23rd, '20, 07:53

doktor,
Re-installed the locale_en packages and it seems to be the same result when I execute locale[

Code: Select all
[myles@Bilbo ~]$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LC_COLLATE=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_MESSAGES=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_ADDRESS=en_AU.UTF-8
LC_TELEPHONE=en_AU.UTF-8
LC_MEASUREMENT=wbp_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_ALL=
[myles@Bilbo ~]$


doktor said:
Apart from that, there' aren't any such settings regarding locale in ~/.bashrc or maybe ~/.profile or the like, maybe restored from a backup ?


I don't think so. When I do a complete re-install I keep my home drive and then restore specific profile pieces (i.e. my history & open tabs etc. prior to re-install) from my backup drive for things like Firefox, Chrome, Thunderbird and LuckyBackup. I rename the installed folders and then copy back the ones from the backup.

doktor said:
In particular, I'd like to find out where you got the setting LC_MEASUREMENT=wbp_AU.UTF-8 from, because while that might be a valid measurement locale, there are no locale files in any package, so that might cause the error.


What is that setting used for? Is that like metric measurements? (what we use here)

Anyway, still no idea what is happening.
Myles,
Canberra, Australia
User avatar
Myles
 
Posts: 219
Joined: Apr 29th, '12, 10:05

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby kajosim » Jun 24th, '20, 23:14

I suggest you add another user (in MCC) - login as that user and see if the problem still exits.
Regards.
kajosim
 
Posts: 21
Joined: Feb 22nd, '17, 00:55

Re: Incorrect locale definitions after #7.1 re-install weeks

Postby Myles » Jun 29th, '20, 08:22

Did this and the output to the locale cmd looks just the same, so no difference there.

I'll close this as it's not really affecting me (I don't think), it's just annoying when it comes up and I don't know why it is coming up or how to rectify it.
Myles,
Canberra, Australia
User avatar
Myles
 
Posts: 219
Joined: Apr 29th, '12, 10:05


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron