Last active
February 1, 2017 17:02
-
-
Save sleekweasel/12d79e39a5b4d5738b7c3f6c70de1835 to your computer and use it in GitHub Desktop.
SLES/Docker locale issue caused by missing mkdir /usr/lib/locale and needing to re-start bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9f2a7296bd3e:/ # zypper in glibc-i18ndata | |
9f2a7296bd3e:/ # localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8 | |
/usr/share/i18n/locales/en_GB:23: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:24: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:25: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:26: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:27: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:30: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:31: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:32: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:33: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:35: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:36: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:37: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:38: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:39: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:40: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:41: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:42: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:43: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:44: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:45: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:46: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:50: non-symbolic character value should not be used | |
/usr/share/i18n/locales/i18n:1425: non-symbolic character value should not be used | |
/usr/share/i18n/locales/i18n:1674: non-symbolic character value should not be used | |
/usr/share/i18n/locales/i18n:1719: non-symbolic character value should not be used | |
/usr/share/i18n/locales/i18n:1756: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:53: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:59: non-symbolic character value should not be used | |
/usr/share/i18n/locales/iso14651_t1:3: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_GB:153: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:10: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:11: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:12: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:13: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:14: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:15: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:16: non-symbolic character value should not be used | |
/usr/share/i18n/locales/translit_neutral:17: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_US:34: non-symbolic character value should not be used | |
/usr/share/i18n/locales/en_US:40: non-symbolic character value should not be used | |
LC_NAME: field `name_gen' not defined | |
LC_ADDRESS: field `country_name' not defined | |
LC_ADDRESS: field `country_post' not defined | |
LC_ADDRESS: field `country_isbn' not defined | |
LC_IDENTIFICATION: field `audience' not defined | |
LC_IDENTIFICATION: field `application' not defined | |
LC_IDENTIFICATION: field `abbreviation' not defined | |
cannot write output files to `(null)': No such file or directory | |
9f2a7296bd3e:/ # localedef -c -i en_GB -f UTF-8 en_GB.UTF-8 | |
cannot write output files to `(null)': No such file or directory | |
9f2a7296bd3e:/usr/share/i18n # strace localedef --list-archive | |
execve("/usr/bin/localedef", ["localedef", "--list-archive"], [/* 60 vars */]) = 0 | |
brk(0) = 0x1f2a000 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd50b6c3000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat(3, {st_mode=S_IFREG|0644, st_size=34896, ...}) = 0 | |
mmap(NULL, 34896, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd50b6ba000 | |
close(3) = 0 | |
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\34\2\0\0\0\0\0"..., 832) = 832 | |
fstat(3, {st_mode=S_IFREG|0755, st_size=1979344, ...}) = 0 | |
mmap(NULL, 3832352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd50b0fc000 | |
mprotect(0x7fd50b29a000, 2097152, PROT_NONE) = 0 | |
mmap(0x7fd50b49a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19e000) = 0x7fd50b49a000 | |
mmap(0x7fd50b4a0000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd50b4a0000 | |
close(3) = 0 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd50b6b9000 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd50b6b8000 | |
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd50b6b7000 | |
arch_prctl(ARCH_SET_FS, 0x7fd50b6b8700) = 0 | |
mprotect(0x7fd50b49a000, 16384, PROT_READ) = 0 | |
mprotect(0x646000, 4096, PROT_READ) = 0 | |
mprotect(0x7fd50b6c4000, 4096, PROT_READ) = 0 | |
munmap(0x7fd50b6ba000, 34896) = 0 | |
brk(0) = 0x1f2a000 | |
brk(0x1f4b000) = 0x1f4b000 | |
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en.UTF-8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en.utf8/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en/LC_MESSAGES", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en_GB/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/en/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file or directory) | |
exit_group(0) = ? | |
+++ exited with 0 +++ | |
9f2a7296bd3e:/usr/share/i18n # mkdir /usr/lib/locale | |
9f2a7296bd3e:/usr/share/i18n # localedef -c -i en_GB -f UTF-8 en_GB.UTF-8 | |
9f2a7296bd3e:/usr/share/i18n # LC_ALL=en_GB.UTF-8 | |
bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) | |
9f2a7296bd3e:/usr/share/i18n # bash -l | |
Directory: /usr/share/i18n | |
Wed 1 Feb 16:57:01 UTC 2017 | |
9f2a7296bd3e:/usr/share/i18n # LC_ALL=en_GB.UTF-8 | |
Hurrah! | |
9f2a7296bd3e:/usr/share/i18n # logout | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment