将 debian 11 语言从英语更改为德语

将 debian 11 语言从英语更改为德语

我尝试将系统语言从英语更改为德语,而无需重新安装操作系统。我基本上运行以下命令:

dpkg-reconfigure locales

以 root 身份。我以 root 身份收到错误:

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

选择de_DE.UTF-8 UTF-8后,出现以下错误:

*** update-locale: Error: invalid locale settings:  LC_CTYPE=en_US.UTF-8 LC_NAME=pt_BR.UTF-8 LC_IDENTIFICATION=pt_BR.UTF-8 LANG=de_DE.UTF-8 LC_PAPER=pt_BR.UTF-8 LC_ALL=en_US.UTF-8 LC_TELEPHONE=pt_BR.UTF-8 LC_ADDRESS=pt_BR.UTF-8 LC_TIME=en_US.UTF-8 LC_NUMERIC=pt_BR.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_MEASUREMENT=pt_BR.UTF-8 LC_MONETARY=pt_BR.UTF-8

并且当使用

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
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

注意:我已尝试过: 将 debian 语言更改为英语

相关内容