0

This question already has an answer here:

root@tony-Satellite-C665:~# ls /etc/locale.conf
ls: cannot access /etc/locale.conf: No such file or directory

marked as duplicate by Zanna, Anwar, 2707974, waltinator, karel Apr 17 '17 at 4:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

I believe that you can simply create this file and add your desired configuration to it, like:

LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_NAME="en_US.utf8"

Or whatever you want. Actually, by default this file does not exist on my machine too.

The other file that I believe systemd uses is:

/etc/default/locale

If you set a locale using localectl like:

localectl set-locale LC_TIME=en_GB.utf8

It will be add to that file:

$ cat /etc/default/locale 
LC_TIME=en_GB.utf8

Remember that you can allways get a list of available locales by localectl list-locales or: locale -a.

And if the locale you are looking for is not in the list, first uncomment it from: /etc/locale.gen, then run locale-gen, and use localectl or whatever why you prefer to set your preferred locales.

  • Just for the record, maybe some missing locales must be generated - for example: sudo locale-gen "en_US.UTF-8". – pa4080 Apr 16 '17 at 14:14
  • @SpasSpasov, thanks for remembering that... also updated the answer. – Ravexina Apr 16 '17 at 14:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.