You are not logged in.

#1 2016-05-16 19:49:07

myrlin
Member
Registered: 2010-06-11
Posts: 297

[SOLVED] Locale Problem After Update

Following a recent update, my system is not recognising my locale (en_GB.UTF-8).

I have tried to regenerate the locales using

# locale-gen 

but get the error message

Cannot open locale definition file `i18n': No such file or directory

However, /usr/share/i18n/locales/en_GB exists.

The output of locale -a is:

$locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX

I have also tried re-installing glibc, but still get the error message:

 Generating locales...
  en_GB.UTF-8...cannot open locale definition file `i18n': No such file or directory

I really don't know what to do next, so I would be very grateful for any advice to help resolve this problem

Last edited by myrlin (2016-05-16 20:27:36)

Offline

#2 2016-05-16 19:54:43

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Locale Problem After Update

Do you have any NoExtract directives in your pacman.conf ?

Because locale-gen seems to be picky about which files it needs, and it isn't immediately intuitive what it wants -- I am pretty sure I recognize that error. So I finally settled on the following lines:

NoExtract   = usr/share/locale/* usr/share/X11/locale/* usr/share/i18n/locales/*
NoExtract   = !*locale*/${keep_this_locale} !usr/share/*locale*/locale.alias !usr/share/*locales/i18n !usr/share/*locales/iso* !usr/share/*locales/trans*

Last edited by eschwartz (2016-05-16 19:55:58)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2016-05-16 19:56:32

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Locale Problem After Update

Try https://bbs.archlinux.org/viewtopic.php … 3#p1384983 but use en_GB rather than en_US (obviously).

Offline

#4 2016-05-16 20:27:08

myrlin
Member
Registered: 2010-06-11
Posts: 297

Re: [SOLVED] Locale Problem After Update

Eschwartz - your post gave me the clue. I had forgotten some old "NoExtract" lines, so I commented out all related to locales, re-installed Glibc as recommended by your post, Head_on_a_Stick, and all came good.

Thank you both so much for your super-fast help!

Last edited by myrlin (2016-05-16 20:28:12)

Offline

Board footer

Powered by FluxBB