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

 

posted @ 2021-06-24 11:27  龙虚度  阅读(531)  评论(0编辑  收藏  举报