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

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

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

Postby 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
Forum Moderator
Posts: 20948
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Postby 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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. 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

Postby lin26b2b » 2017/09/15 02:04:20

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

Best,