You are not logged in.
Pages: 1
Hello,
I recently installed ArchLinux on my desktop but I made a typo when initializing the languages..
I typed de_DE-UTF-8 instead of de_DE.UTF-8 and now my system seems to be messed up: man cannot set the locales and locale -a throws an error.
Changing the language manually in /etc/locale.conf and re-running locale-gen doesn't seem to solve the problem as you can see here:
localectl
System Locale: LANG=de_DE.UTF-8
VC Keymap: de-latin1
X11 Layout: n/a
grep -v '^#' /etc/locale.*
/etc/locale.conf:LANG=de_DE.UTF-8
/etc/locale.conf:LC_CTYPE="de_DE.UTF-8"
/etc/locale.conf:LC_NUMERIC="de_DE.UTF-8"
/etc/locale.conf:LC_TIME="de_DE.UTF-8"
/etc/locale.conf:LC_COLLATE="de_DE.UTF-8"
/etc/locale.conf:LC_MONETARY="de_DE.UTF-8"
/etc/locale.conf:LC_MESSAGES="de_DE.UTF-8"
/etc/locale.conf:LC_PAPER="de_DE.UTF-8"
/etc/locale.conf:LC_NAME="de_DE.UTF-8"
/etc/locale.conf:LC_ADDRESS="de_DE.UTF-8"
/etc/locale.conf:LC_TELEPHONE="de_DE.UTF-8"
/etc/locale.conf:LC_MEASUREMENT="de_DE.UTF-8"
/etc/locale.conf:LC_IDENTIFICATION="de_DE.UTF-8"
/etc/locale.conf:LC_ALL="de_DE.UTF-8"
/etc/locale.conf:
/etc/locale.gen:de_DE.UTF-8 UTF-8
/etc/locale.gen:en_US.UTF-8 UTF-8
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
de_DE.utf8
en_US.utf8
Is there any way to fix this?
Sincerely,
Hering
Offline
Is the locale also correct in /etc/vconsole.conf?
This is a long short, but sometimes an error in this file can cause issues.
Last edited by mrunion (2016-05-26 13:01:59)
Matt
"It is very difficult to educate the educated."
Offline
In /etc/vconsole.conf I have this:
cat /etc/vconsole.conf ~
KEYMAP=de-latin1
Looks alright to me...
Offline
Anything about LANG or LANGUAGE in your shell init files?
Offline
Hmm, no only some history-settings etc created by zsh and my usual aliases in there.
It does help though when I do source /etc/locale.conf for both me and root user but after a reboot it is gone again.
Offline
you only need to set LANG, either by editing the file or with `localectl set-locale …`
to create the locale in the first place, you need to edit /etc/locale.gen and then run locale-gen
Offline
Yes thats exactly what I did. In the /etc/locale.gen I uncommented de_DE.UTF-8 and en_US.UTF-8 then I ran locale-gen.
But since I made a typo in the initial configuration (I followed the manual here on archlinux.org) it wont work. So I tried setting all these parameters manually and call source.. now on every boot but thats a dirty solution.
Last edited by Hering (2016-05-26 14:09:56)
Offline
Pages: 1