You are not logged in.
Pages: 1
Hello
After installing Archlinux, I've set everything according to wiki,
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Poland"
KEYMAP="pl"
CONSOLEFONT=lat2-16.psfu.gz
CONSOLEMAP=
USECOLOR="yes"
and run locale-gen, everything seemed to be ok, untill reboot.
After rebooting I get
$ locale
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_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
and now I have to run locale-gen after every boot (and then everything's fine)
I dont know if it's relevant but my /usr is on a separate partition (/dev/md1)
I've already tried reinstalling glibc, but nothing has changed.
Offline
I know that it's in the wiki (and I don't know if it would give this kind of error), but since you didn't mention it:
Have uncommented the neccesary lines in /etc/locale.gen?
Last edited by tlvb (2009-08-02 22:22:41)
I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.
Offline
Yes I have, like I said everything is fine after locale-gen, till reboot
maybe (rather lengthy) strace output will help to identify the problem
execve("/usr/bin/locale", ["locale"], [/* 124 vars */]) = 0
brk(0) = 0x8128000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=72982, ...}) = 0
mmap2(NULL, 72982, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7efd000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220k\1\0004\0\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1584604, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efc000
mmap2(NULL, 1333512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7db6000
mmap2(0xb7ef6000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x140) = 0xb7ef6000
mmap2(0xb7ef9000, 10504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef9000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7db5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7db56c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_n
ot_present:0, useable:1}) = 0
mprotect(0xb7ef6000, 8192, PROT_READ) = 0
mprotect(0x804d000, 4096, PROT_READ) = 0
mprotect(0xb7f2c000, 4096, PROT_READ) = 0
munmap(0xb7efd000, 72982) = 0
brk(0) = 0x8128000
brk(0x8149000) = 0x8149000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1439584, ...}) = 0
mmap2(NULL, 1439584, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7c55000
munmap(0xb7c55000, 1439584) = 0
close(3) = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0e000
read(3, "# Locale name alias data base.\n# "..., 4096) = 2570
read(3, ""..., 4096) = 0
close(3) = 0
munmap(0xb7f0e000, 4096) = 0
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.utf8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "locale: "..., 8locale: ) = 8
write(2, "Cannot set LC_CTYPE to default lo"..., 37Cannot set LC_CTYPE to default locale) = 37
write(2, ": No such file or directory"..., 27: No such file or directory) = 27
write(2, "\n"..., 1
) = 1
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.utf8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "locale: "..., 8locale: ) = 8
write(2, "Cannot set LC_MESSAGES to default"..., 40Cannot set LC_MESSAGES to default locale) = 40
write(2, ": No such file or directory"..., 27: No such file or directory) = 27
write(2, "\n"..., 1
) = 1
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "locale: "..., 8locale: ) = 8
write(2, "Cannot set LC_ALL to default loca"..., 35Cannot set LC_ALL to default locale) = 35
write(2, ": No such file or directory"..., 27: No such file or directory) = 27
write(2, "\n"..., 1
) = 1
fstat64(1, {st_mode=S_IFCHR|0622, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f0e000
write(1, "LANG=en_US.utf8\n"..., 16) = 16
write(1, "LC_CTYPE=\"en_US.utf8\"\n"..., 22) = 22
write(1, "LC_NUMERIC=\"en_US.utf8\"\n"..., 24) = 24
write(1, "LC_TIME=\"en_US.utf8\"\n"..., 21) = 21
write(1, "LC_COLLATE=C\n"..., 13) = 13
write(1, "LC_MONETARY=\"en_US.utf8\"\n"..., 25) = 25
write(1, "LC_MESSAGES=\"en_US.utf8\"\n"..., 25) = 25
write(1, "LC_PAPER=\"en_US.utf8\"\n"..., 22) = 22
write(1, "LC_NAME=\"en_US.utf8\"\n"..., 21) = 21
write(1, "LC_ADDRESS=\"en_US.utf8\"\n"..., 24) = 24
write(1, "LC_TELEPHONE=\"en_US.utf8\"\n"..., 26) = 26
write(1, "LC_MEASUREMENT=\"en_US.utf8\"\n"..., 28) = 28
write(1, "LC_IDENTIFICATION=\"en_US.utf8\"\n"..., 31) = 31
write(1, "LC_ALL=\n"..., 8) = 8
exit_group(0) = ?
I guess something is wrong with my init scripts, (I've tried to reinstall base - it haven't helped)
Offline
I have the exact same problem :
[brendan@holm ~]$ locale
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_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
Offline
Pages: 1