软件中心无法在我的 10.10 上启动。以前它可以正常工作。我最近才注意到这一点。单击应用程序菜单中的 Ubuntu 软件中心时,我可以在任务栏中看到“启动 Ubuntu 软件中心”按钮,该按钮会在一段时间后消失,但软件中心不会出现。我也无法使用软件中心安装 deb 文件,因为发生了同样的事情(现在使用 gdebi 安装 deb 文件)。从终端运行软件中心时,我得到以下信息。
$ software-center
2011-06-04 23:01:25,084 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/view/widgets/mkit_themes.py', 675, 'retrieve')'
2011-06-04 23:01:25,083 - root - WARNING - No styling hints for Wasp-Murrine were found... using Human hints.
(software-center:7715): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion `G_IS_LOADABLE_ICON (icon)' failed
(software-center:7715): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion `G_IS_LOADABLE_ICON (icon)' failed
Traceback (most recent call last):
File "/usr/bin/software-center", line 90, in <module>
app = SoftwareCenterApp(datadir, xapian_base_path, options, args)
File "/usr/share/software-center/softwarecenter/app.py", line 312, in __init__
self.view_switcher = ViewSwitcher(self.view_manager, datadir, self.db, self.cache, self.icons)
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 59, in __init__
store = ViewSwitcherList(view_manager, datadir, db, cache, icons)
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 321, in __init__
self._update_channel_list()
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 398, in _update_channel_list
self._update_channel_list_available_view()
File "/usr/share/software-center/softwarecenter/view/viewswitcher.py", line 420, in _update_channel_list_available_view
for channel in self.channel_manager.channels:
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 65, in channels
return self._get_channels()
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 279, in _get_channels
channel_query=for_purchase_query)
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 339, in __init__
self._channel_icon = self._get_icon_for_channel(channel_name, channel_origin, channel_component)
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 425, in _get_icon_for_channel
channel_icon = self._get_icon("emblem-money")
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 458, in _get_icon
icon = AnimatedImage(self.icons.load_icon(icon_name, self.ICON_SIZE, 0))
glib.GError: Failed to load icon
我使用更新管理器将所有软件包升级到最新版本。我从 synaptic 重新安装了软件中心。仍然没有成功。我该如何解决这个问题?
我不知道这是否相关,但使用替代 iso 将 10.10 升级到 11.04 失败并出现以下错误。
Could not mark ubuntu-desktop for upgrade.
apt.log 文件的最后一部分,其中提到了 software-center 和 ubuntu-desktop
Investigating (7) software-center [ i386 ] < 3.0.8 -> 4.0 > ( gnome )
Broken software-center:i386 Depends on python-webkit [ i386 ] < 1.1.8-0ubuntu2 -> 1.1.8-1ubuntu2 > ( python )
Considering python-webkit:i386 10000 as a solution to software-center:i386 10000
Removing software-center:i386 rather than change python-webkit:i386
Investigating (7) libnspr4-0d [ i386 ] < 4.8.6-0ubuntu1 > ( libs )
Broken libnspr4-0d:i386 Conflicts on libnspr4 [ i386 ] < none -> 4.8.7-0ubuntu1 > ( libs ) (< 2:4)
Considering libnspr4:i386 10000 as a solution to libnspr4-0d:i386 10000
Removing libnspr4-0d:i386 rather than change libnspr4:i386
Investigating (8) ubuntu-desktop [ i386 ] < 1.207 -> 1.220 > ( metapackages )
Broken ubuntu-desktop:i386 Depends on software-center [ i386 ] < 3.0.8 -> 4.0 > ( gnome )
Considering software-center:i386 10000 as a solution to ubuntu-desktop:i386 10000
Considering software-center:i386 10000 as a solution to ubuntu-desktop:i386 10000
Investigating (8) xulrunner-1.9.2 [ i386 ] < 1.9.2.17+build3+nobinonly-0ubuntu0.10.10.1 > ( devel )
Broken xulrunner-1.9.2:i386 Depends on libnspr4-0d [ i386 ] < 4.8.6-0ubuntu1 > ( libs ) (>= 4.7.3-0ubuntu1~)
Considering libnspr4-0d:i386 10000 as a solution to xulrunner-1.9.2:i386 10000
Removing xulrunner-1.9.2:i386 rather than change libnspr4-0d:i386
Investigating (9) ubuntu-desktop [ i386 ] < 1.207 -> 1.220 > ( metapackages )
Broken ubuntu-desktop:i386 Depends on software-center [ i386 ] < 3.0.8 -> 4.0 > ( gnome )
Considering software-center:i386 10000 as a solution to ubuntu-desktop:i386 10000
Considering software-center:i386 10000 as a solution to ubuntu-desktop:i386 10000
Investigating (9) yelp [ i386 ] < 2.30.1-0ubuntu1 -> 3.0.0-0ubuntu2 > ( gnome )
Broken yelp:i386 Depends on xulrunner-1.9.2 [ i386 ] < 1.9.2.17+build3+nobinonly-0ubuntu0.10.10.1 > ( devel )
Considering xulrunner-1.9.2:i386 10000 as a solution to yelp:i386 10000
Removing yelp:i386 rather than change xulrunner-1.9.2:i386
Done
答案1
第一个问题……看起来它找不到徽章货币图标。它抱怨的第一件事是 Wasp-Murrine(自定义主题)。
我建议你将主题改回人类,看看是否能解决问题。对我来说,徽章钱图标位于包中humanity-icon-theme
。你可以用它安装
sudo apt-get install humanity-icon-theme
如果这不起作用,您可以尝试不使用 GUI 进行升级。