我的目标是在比利时安装英语版的 Kubuntu。
好的,我们从安装开始。
选择比利时键盘。
地区:欧洲,时区:比利时。
安装完成。这是第一个登录屏幕。但是...为什么它用德语显示时间?
让我们尝试修复它并将所有内容设置为比利时英语!
重启后时间仍为德语。
当我运行sudo apt upgrade
. 时,出现了一个令人讨厌的区域设置错误。
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_TIME = "en_BE.UTF-8",
LC_MONETARY = "en_BE.UTF-8",
LC_ADDRESS = "de_BE.UTF-8",
LC_TELEPHONE = "de_BE.UTF-8",
LC_NAME = "de_BE.UTF-8",
LC_MEASUREMENT = "en_BE.UTF-8",
LC_IDENTIFICATION = "de_BE.UTF-8",
LC_NUMERIC = "en_BE.UTF-8",
LC_PAPER = "de_BE.UTF-8",
LANG = "en_BE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
sudo locale-gen en_BE
输出Error: 'en_BE' is not a supported language or locale
为什么会这样?可以修复吗?
user@user-virtual-machine:~$ cat /etc/default/locale
# File generated by update-locale
LANG="en_US.UTF-8"
LC_NUMERIC="de_BE.UTF-8"
LC_TIME="de_BE.UTF-8"
LC_MONETARY="de_BE.UTF-8"
LC_PAPER="de_BE.UTF-8"
LC_NAME="de_BE.UTF-8"
LC_ADDRESS="de_BE.UTF-8"
LC_TELEPHONE="de_BE.UTF-8"
LC_MEASUREMENT="de_BE.UTF-8"
LC_IDENTIFICATION="de_BE.UTF-8"
user@user-virtual-machine:~$ 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_BE.UTF-8
LANGUAGE=
LC_CTYPE="en_BE.UTF-8"
LC_NUMERIC=en_BE.UTF-8
LC_TIME=en_BE.UTF-8
LC_COLLATE="en_BE.UTF-8"
LC_MONETARY=en_BE.UTF-8
LC_MESSAGES="en_BE.UTF-8"
LC_PAPER=de_BE.UTF-8
LC_NAME=de_BE.UTF-8
LC_ADDRESS=de_BE.UTF-8
LC_TELEPHONE=de_BE.UTF-8
LC_MEASUREMENT=en_BE.UTF-8
LC_IDENTIFICATION=de_BE.UTF-8
LC_ALL=
答案1
我没有使用 Kubuntu,并且不太熟悉 KDE 处理语言和语言环境的方式。
但是,根据以上信息,实现所需行为的一种方法(几乎)是假装自己是丹麦人。:)
所以我的建议是改变整体地区设置为丹麦 - 英语。这将为您提供 ISO 兼容的日期和时间格式。
那么你可能想改变货币设置为比利时 - 德语获取比利时货币符号。
不过,这些更改不会影响登录屏幕。要修复登录屏幕,您可以打开文件/etc/default/locale
进行编辑,删除所有变量设置LC_*
,只保留设置LANG
。
高血压