Centos yum命令提示failed to
发布时间:2024-07-01 09:35
阅读量:1720
携手合作伙伴,实现业务上的双向合作共赢
我们为您提供全方位的支持与服务,确保您在使用我们的云服务时无忧无虑。
10+年商誉沉淀,深耕中国香港及海外高端资源
在输入yum命令是出现
Failed to set locale, defaulting to C
出现这个问题是由于系统没有正确设置locale环境, 而locale是用于设置本地环境的比如:语言、时区、数字等
locale提示
运行locale命令会出现如下提示
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
解决方案
方案一:设置系统环境变量
echo "export LC_ALL=en_US.UTF-8" >> /etc/profile
source /etc/profile
方案二:设置个人环境变量
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
source ~/.bashrc
服务热线:
18251482443电子邮箱:
202256327@qq.com商务QQ:
202256327公司地址:
江苏省连云港市东海县红星美凯龙S5-A133
客服微信
客服微信