You are not logged in.
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
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
Try https://bbs.archlinux.org/viewtopic.php … 3#p1384983 but use en_GB rather than en_US (obviously).
Offline
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