16

Using Arch.

$ localectl status
System Locale: n/a

VC Keymap: n/a
X11 Layout: n/a

Okay cool, so I just do set locale, right?

 $ localectl list-locales
 en_US.utf8

...cool, I'll use en_US.utf8

 localectl set-locale en_US.utf8
 Failed to issue method call: Invalid Locale data...

What could possibly be wrong?

peterph
  • 30,838
robert
  • 556
  • 3
    This should not be closed as "cannot be reproduced". I had the same problem and arrived here via search and found the solution. – Caleb Oct 24 '14 at 08:21
  • 1
    Going by the number of upvotes, it looks like quite a few of us could reproduce this error message by mis-using the localectl command. :) In my case, it was on a CentOS 7 system. – Anthony Geoghegan Jul 10 '18 at 13:33

1 Answers1

14

Never mind, I was just using it wrongly.

From info localectl:

...this [command] takes one or more assignments such as LANG=en_US.utf8
HalosGhost
  • 4,790
robert
  • 556