Skip to content

Instantly share code, notes, and snippets.

@zeroc0d3
Forked from seafooler/manpath-wrong
Created March 18, 2019 22:58
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save zeroc0d3/9d5333d542f7d1bc997d902ac17cd034 to your computer and use it in GitHub Desktop.
Save zeroc0d3/9d5333d542f7d1bc997d902ac17cd034 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
```
@csy1204
Copy link

csy1204 commented Jan 15, 2020

# echo "LC_ALL=en_US.UTF-8" >> /etc/environment
# echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
# echo "LANG=en_US.UTF-8" > /etc/locale.conf
# locale-gen en_US.UTF-8

@VAggrippino
Copy link

That would change my locale variable to all use en_US.UTF-8, which would be incorrect for me.

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