概述
在 Linux 终端登录或执行命令(如 man、apt、git)时,常遇到类似报错:
- manpath: can't set the locale; make sure $LC_* and $LANG are correct
- warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
这并非系统故障,而是 locale 语言环境配置异常 导致的:
2024/1/14大约 4 分钟