我用英语安装了服务器,但使用德语键盘,它基本上可以正常工作。但我经常(例如 apt-get update)收到警告,我想摆脱这些警告:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_TIME = "de_DE.UTF-8",
LC_MONETARY = "de_DE.UTF-8",
LC_ADDRESS = "de_DE.UTF-8",
LC_TELEPHONE = "de_DE.UTF-8",
LC_NAME = "de_DE.UTF-8",
LC_MEASUREMENT = "de_DE.UTF-8",
LC_IDENTIFICATION = "de_DE.UTF-8",
LC_NUMERIC = "de_DE.UTF-8",
LC_PAPER = "de_DE.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
我遇到的另一个问题是 virsh:
$ virsh dumpxml template
setlocale: No such file or directory
setlocale 命令由提供gnulib
,我可以安装它。但是:
0 upgraded, 89 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.8 MB of archives.
After this operation, 206 MB of additional disk space will be used.
说真的,200+MB 用来配置键盘?我觉得我漏掉了什么……
答案1
您可以通过生成德语区域设置来解决第一个问题:
sudo locale-gen de_DE.UTF-8