Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory

报错如下:

Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory

解决方式:

1、Ubuntu操作系统

apt-get install -y locales

locale-gen en_US.UTF-8

2、CentOS 8 操作系统

dnf -y install glibc-locale-source glibc-langpack-en
localedef -f UTF-8 -i en_US en_US.UTF-8

原文地址:https://www.cnblogs.com/9527l/p/14926121.html