• 首页
  • 数据库
    • mysql
  • web服务器
    • nginx
    • Apache
  • 操作系统
    • Centos
    • Debian
    • Ubuntu
    • mac
    • windows
  • 编程语言
    • html
    • php
  • 集群
    • mycat
  • 其它
欢迎光顾我的个人博客
  1. 首页
  2. 文章
  3. 操作系统
  4. Linux
  5. Centos
  6. 正文

centos常见错误 Failed to set locale, defaulting to C

2020年06月18日 1171点热度 0人点赞 0条评论

错误描述:

当在centos中使用yum命令时,输出错误:

Failed to set locale, defaulting to C 

用locale检测,出现如下提示:

locale:Cannot set LC_CTYPE to default locale: No such file or directory locale:Cannot set LC_MESSAGES to default locale: No such file or directory locale:Cannot set LC_ALL to default locale: No such file or directory 

错误分析:

查询可知locale是用来设置语言环境的,故此需要查看并正确设置locale

解决方案:

echo "export LC_ALL=en_US.UTF-8"  >>  /etc/profile 

执行命令后重新登录即可!

标签: centos
最后更新:2020年07月15日

多洛夫

多看多想多研究,总会有创新

点赞
< 上一篇
下一篇 >

文章评论

取消回复

多洛夫

多看多想多研究,总会有创新

博客更新日期
2025 年 6 月
一 二 三 四 五 六 日
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« 7 月    
分类
标签聚合
Shell Yandex ffmpeg 视频截图 google插件 php haproxy Google 域名邮箱 wordpress Launchctl lls DNS centos 图片格式转换 Termux mac mysql 谷歌浏览器插件 Photoshop

© 2020 多洛夫