warning setlocale LC_CTYPE cannot change locale (zh_CN.UTF-8)

报错:

1
warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)

解决:

1
2
3
vim  /etc/locale.gen
# 取消注释
zh_CN.UTF-8 UTF-8

执行:

1
locale-gen