Skip to content

Instantly share code, notes, and snippets.

@tsq
Forked from zeroc0d3/manpath-wrong
Created June 12, 2021 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsq/e13a9fa84cc0ca725ee3e409e0782a63 to your computer and use it in GitHub Desktop.
Save tsq/e13a9fa84cc0ca725ee3e409e0782a63 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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment