为什么我无法启动深度软件中心(在 Ubuntu 上)?

为什么我无法启动深度软件中心(在 Ubuntu 上)?

我从 PPA 安装了 DSC,但当我点击它的图标时什么也没发生!我无法启动它。

我也尝试从终端使用此命令:deepin-software-center但它给了我这个错误:

<class 'Xlib.protocol.request.QueryExtension'>
INFO     Init ui
Traceback (most recent call last):
File "/usr/bin/deepin-software-center", line 83, in <module>
start_main()
File "/usr/bin/deepin-software-center", line 63, in start_main
software_center.run()
File "/usr/share/deepin-software-center/ui/software_center.py", line 1132, in run
self.ready_show()
File "/usr/share/deepin-software-center/ui/software_center.py", line 878, in ready_show
self.init_ui()
File "/usr/share/deepin-software-center/ui/software_center.py", line 828, in init_ui
self.preference_dialog = DscPreferenceDialog()
File "/usr/share/deepin-software-center/ui/preference.py", line 676, in __init__
self.mirrors_box = MirrorsBox()
File "/usr/share/deepin-software-center/ui/preference.py", line 542, in __init__
self.main_box.pack_start(self.create_mirror_select_table(), True, True)
File "/usr/share/deepin-software-center/ui/preference.py", line 597, in create_mirror_select_table
self.current_mirror_hostname = utils.get_current_mirror_hostname()
File "/usr/share/deepin-software-center/ui/utils.py", line 106, in get_current_mirror_hostname
hostname = url.split(":")[0] + "://" + url.split("/")[2]
IndexError: list index out of range

答案1

您是否尝试过运行sudo deepin-software-center?有时应用程序会以奇怪的方式告诉您它需要 root 权限才能正常运行。

相关内容