By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.
宝塔面板无法正常启动,报错warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)解决方案
2022-08-05 21:28:01    265    0    0

宝塔面板无法正常启动,SSH登录手动查看错误日志,发现有以下错误信息:/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)


# 设置语言环境
sudo localedef -i en_US -f UTF-8 en_US.UTF-8
# 重启宝塔面板
bt 1

 如果提示command not found,可以使用如下命令进行安装配置:

# 卸载locales和语言包,重新安装,再执行locale-gen
sudo apt-get purge locales
sudo apt-get purge language-pack-en

sudo apt-get install locales
sudo apt-get install language-pack-en

sudo locale-gen en_us.utf-8

上一篇: 使 Cloudflared Tunnel 通道支持单 IPv6 网络的服务器通讯,IPv6小鸡变废为宝

下一篇: 宝塔面板7.9.2(含)以下包含RCE安全漏洞,请马上升级

265 人读过