我试图在向系统添加一些语言后安装一个软件包,但这似乎是不可能的。当我的终端提示未打开时,我尝试修复它,sudo dpkg-reconfigure locales
这对我有帮助,但看起来它并不能解决所有问题。
完整的错误是这样的:
(mintSources.py:5884): Gtk-WARNING **: 07:00:48.932: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1689, in <module>
add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
File "/usr/lib/linuxmint/mintSources/mintSources.py", line 141, in add_repository_via_cli
print(_("You are about to add the following PPA:"))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 17: ordinal not in range(128)
当我写下答案时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=nb_no.utf8
LANGUAGE=nb_NO
LC_CTYPE="nb_no.utf8"
LC_NUMERIC=es_AR.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="nb_no.utf8"
LC_MONETARY=es_AR.UTF-8
LC_MESSAGES="nb_no.utf8"
LC_PAPER=es_AR.UTF-8
LC_NAME=es_AR.UTF-8
LC_ADDRESS=es_AR.UTF-8
LC_TELEPHONE=es_AR.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
LC_IDENTIFICATION=es_AR.UTF-8
LC_ALL=
我安装了三种语言,似乎挪威语的工作方式很奇怪
ls -lah
total 24K
drwxr-xr-x 2 root root 4.0K Feb 4 00:49 <font color="#729FCF"><b>.</b></font>
drwxr-xr-x 3 root root 4.0K Dec 17 10:26 <font color="#729FCF"><b>..</b></font>
-rw-r--r-- 1 root root 294 Jul 17 2018 en
-rw-r--r-- 1 root root 372 Jul 17 2018 es
-rw-r--r-- 1 root root 780 Feb 4 00:40 mintlocale
-rw-r--r-- 1 root root 24 Feb 5 06:48 nb