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

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

问题

When login in, the shell prints:

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

解决

sudo locale-gen "en_US.UTF-8"
sudo dpkg-reconfigure locales
sudo vi /etc/default/locale 改为如下

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

你可能感兴趣的:(程序人生)