无法运行 sudo update-manager

无法运行 sudo update-manager

我无法运行 sudo update-manager。我不知道哪里出了问题。你知道吗?

(precise)acer@localhost:~$ sudo update-manager
[sudo] password for acer: 

(process:5761): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
WARNING:root:estimate_kernel_size_in_boot() returned '0'?
Traceback (most recent call last):
File "/usr/bin/update-manager", line 64, in <module>
help=_("Directory that contains the data files").decode(enc))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not           in range(128)
(precise)acer@localhost:~$ 


(precise)acer@localhost:~$ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "sv_SV:en",
LC_ALL = (unset),
LC_MESSAGES = "sv_SV.UTF-8",
LANG = "sv_SV.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
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZM.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
sv_FI.UTF-8... up-to-date
sv_SE.UTF-8... up-to-date
Generation complete.
(precise)acer@localhost:~$ 

我使用瑞典语,但不使用瑞典语键盘布局,因为我不知道如何安装。

答案1

打开终端并输入

sudo apt-get install --reinstall update-manager

然后重试。

答案2

一个问题是您的语言环境设置不正确;没有“sv_SV.UTF-8”语言环境。

请使用System Settings -> Language Support选择瑞典语作为语言和区域格式。然后,在您注销并重新登录后,尝试再次运行更新管理器。

转到System Settings -> Keyboard Layout设置与您的物理键盘相匹配的键盘布局。

相关内容