cannot access /etc/locale.conf: No such file or directory

General support questions
Post Reply
lin26b2b
Posts: 4
Joined: 2017/09/14 12:42:17

cannot access /etc/locale.conf: No such file or directory

Post by lin26b2b » 2017/09/14 14:20:54

Hi all:

on my centos machine, I failed to find the locale.conf file.

[root@wuserver locale]# ls -cl /etc/locale.conf
ls: cannot access /etc/locale.conf: No such file or directory

my machine was: Linux version 2.6.32-642.1.1.el6.x86_64 , CentOS release 6.8 (Final)

Is it nothing unexpected ?
otherwise, how to fix this problem ?

Many many thanks!

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

Re: cannot access /etc/locale.conf: No such file or directory

Post by TrevorH » 2017/09/14 14:49:52

It's expected as /etc/locale.conf belongs to systemd which is el7 only, not el6.

Oh, and you need to yum update to get up to date - 6.9 has been out for about 6 months now.
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

lin26b2b
Posts: 4
Joined: 2017/09/14 12:42:17

Re: cannot access /etc/locale.conf: No such file or directory

Post by lin26b2b » 2017/09/15 02:04:20

Thank you TrevorH!
What file on el6 worked as etc/locale.conf on el7 ?

Best,

Post Reply