sh 如何修复“警告:不支持区域设置:en_US.utf”

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 如何修复“警告:不支持区域设置:en_US.utf”相关的知识,希望对你有一定的参考价值。

This is because locale-gen is using an archive file to store all the locales, but many utilities are still looking for the locale files.

Have a look at /usr/lib/locale/. If your output looks like this, read on:

ls /usr/lib/locale/

C.UTF-8  locale-archive


The warning isn\'t critical, as far as I can tell, but if it bothers you or causes troubles, try the following in a terminal window:

sudo locale-gen --purge --no-archive


This command purges (deletes) the archive file and replaces it with the .utf8 files.

ls /usr/lib/locale/

C.UTF-8     de_LI.utf8  en_CA.utf8  en_IN       en_US.utf8
de_AT.utf8  de_LU.utf8  en_DK.utf8  en_NG       en_ZA.utf8
de_BE.utf8  en_AG       en_GB.utf8  en_NZ.utf8  en_ZM
de_CH.utf8  en_AU.utf8  en_HK.utf8  en_PH.utf8  en_ZW.utf8
de_DE.utf8  en_BW.utf8  en_IE.utf8  en_SG.utf8

以上是关于sh 如何修复“警告:不支持区域设置:en_US.utf”的主要内容,如果未能解决你的问题,请参考以下文章

sh 如何修复Windows更新后的grub故障又称grub救援问题

使用 Gitlab CI docker-in-docker 时如何修复 docker 容器中的“sh: tsc not found”错误

如何修复 curl:(60)SSL 证书:证书链无效

sh 修复ceph pg repair都无法修复的pg不连续

sh github页面问题修复

sh 修复wordpress文件权限