Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Last active June 15, 2018 10:14
Show Gist options
  • Save n3dst4/173e17ef502f7897582f9021135c3669 to your computer and use it in GitHub Desktop.
Save n3dst4/173e17ef502f7897582f9021135c3669 to your computer and use it in GitHub Desktop.
How to fix batshit WSL errors abut locales, $LANG, $LC_* etc

If you start getting shitty fucking error messages like

manpath: can't set the locale; make sure $LC_* and $LANG are correct

whenever you start up a WSL shell, your system locales are all fucked to insane buggery and you need to unfuck them pronto.

You can do this by running the official locale-unfucking command:

 sudo dpkg-reconfigure locales 

This launches some neolithic tool where you can pick the locales you want to install. I've noticed that because WSL is fucking terrible and shit at everything, if you select only en_GB locales it fucks itself hard right in the festering facewound because it's still looking for en_US.*, so you'd better pick all the en_US.* ones as well, and that'll unfuck it right up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment