Skip to content

Instantly share code, notes, and snippets.

@seafooler
Created December 19, 2017 12:52
Show Gist options
  • Save seafooler/7ab1b6b5676663b884318d3ba76513d9 to your computer and use it in GitHub Desktop.
Save seafooler/7ab1b6b5676663b884318d3ba76513d9 to your computer and use it in GitHub Desktop.
Fix: "manpath: can't set the locale; make sure $LC_* and $LANG are correct"
## Problem
When login in, the shell prints:
```
manpath: can't set the locale; make sure $LC_* and $LANG are correct
```
## Solution
```
sudo locale-gen "en_US.UTF-8"
sudo dpkg-reconfigure locales
sudo echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
```
@Vichoko
Copy link

Vichoko commented Jun 20, 2018

Theese commands should be ran in the client or the server machine?

@vadym-vorobel
Copy link

@Vichoko I've run these commands on the server where this problem exists and it works for me.

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