Locale not working after upgrading glibc to 2.31

Issues related to applications and software problems and general support
Post Reply
arrudi
Posts: 1
Joined: 2020/04/24 11:45:58

Locale not working after upgrading glibc to 2.31

Post by arrudi » 2020/04/24 12:41:57

Hi,

I've compiled and installed glibc 2.31 (original was 2.28) in my newly installed CentOS8 and right after installing the libraries, gnome-terminal doesn't work anymore.

I get the message 'Locale not supported by C library. Using the fallback 'C' locale. Also when executing 'dnf' I get the same message. I assume locale issues are the reason for gnome-terminal not starting.

My /etc/locale.conf says LANG="en_GB.UTF-8" and in the directory /usr/lib/locale/ I can see a en_GB, en_GB.iso885915 and en_GB.utf8 (not capital)

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've tried everything I've found in different forums but no luck.

Can anybody help me on resolving this issue? I still have a few libs to update and just the first one is really causing me pain (don't want to explain my challenges around libnss_nis and libnss_nisplus when installing glibc 2.31...)

Thanks in advance...

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Locale not working after upgrading glibc to 2.31

Post by TrevorH » 2020/04/24 13:55:53

Guess what, replacing glibc is completely and utterly unsupported and you broke your system and get to keep all of the pieces.

Reinstall.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: Locale not working after upgrading glibc to 2.31

Post by stevemowbray » 2020/04/24 14:18:36

I don't think you have chosen the right OS for your needs if you really need a different glibc. If you must have a different glibc from the one that CentOS provides (why?) then you should use a distribution that provides it.

Post Reply