14

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?

  • 2
    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 8: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 G - justice for Monica Jul 10 '18 at 13:33
13

Never mind, I was just using it wrongly.

From info localectl:

...this [command] takes one or more assignments such as LANG=en_US.utf8
  • 1
    Anyone know how I set the syntax highlighting for a post to bash? – robert Sep 13 '14 at 21:18
  • 1
    You can force it with: <!-- language: lang-bsh --> (it is generally triggered by the tags)... – jasonwryan Sep 13 '14 at 22:01
  • 4
    To clarify, instead of localectl set-locale en_US.utf8, you used localectl set-locale LANG="en_US.utf8". – ILMostro_7 Jun 25 '16 at 23:21
  • @jasonwryan, I suspect bsh is means beanshell – akostadinov Jul 19 '16 at 12:02
  • 1
    ... and log out and log in again to take effect. – WesternGun Jan 30 '18 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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