自从我下载 Debian 10 KDE Plasma 以来,我就遇到了这个问题。每当我运行程序时,我都会收到有关语言设置的警告错误。我已运行所有命令来设置语言设置,例如:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo locale-gen en_US.UTF-8
dpkg-reconfigure locales
sudo dpkg-reconfigure locales
但每次我重新登录或重新启动计算机时,语言设置都会消失,并且我会在程序中收到相同的错误/警告。如果没有设置,某些程序将无法运行。一个具体的例子是,当我运行 R 时,此警告显示:
During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C"
2: Setting LC_COLLATE failed, using "C"
3: Setting LC_TIME failed, using "C"
4: Setting LC_MESSAGES failed, using "C"
5: Setting LC_MONETARY failed, using "C"
6: Setting LC_PAPER failed, using "C"
7: Setting LC_MEASUREMENT failed, using "C"
对于保留设置以及为什么会发生这种情况有任何帮助吗?