![我在 Ubuntu 16.04 上遇到了软件中心问题,重新安装后它无法正常工作](https://linux22.com/image/1146797/%E6%88%91%E5%9C%A8%20Ubuntu%2016.04%20%E4%B8%8A%E9%81%87%E5%88%B0%E4%BA%86%E8%BD%AF%E4%BB%B6%E4%B8%AD%E5%BF%83%E9%97%AE%E9%A2%98%EF%BC%8C%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%E5%90%8E%E5%AE%83%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C.png)
我最近查找了如何在软件中心从我的上网本上消失后更新并重新安装它,我按照这里的说明进行操作 -软件中心根本无法打开 这只是使用 sudo apt-get update sudo apt-get install software-center 的一个案例(一切似乎进展顺利),现在当我运行它时,我会通过终端显示这个块:
~$ software-center
/usr/bin/software-center:25: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GObject
/usr/share/software-center/softwarecenter/ui/gtk3/views/purchaseview.py:29: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import WebKit2 as webkit
2017-04-01 10:14:30,130 - softwarecenter.backend.zeitgeist_logger - WARNING - Support for Zeitgeist disabled
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/symbolic_icons.py:23: PyGIWarning: PangoCairo was imported without specifying a version first. Use gi.require_version('PangoCairo', '1.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk, GLib, PangoCairo
2017-04-01 10:14:30,874 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2017-04-01 10:14:41,220 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2017-04-01 10:14:41,340 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2017-04-01 10:14:41,918 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2017-04-01 10:14:46,776 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: unsupported pickle protocol: 3
2017-04-01 10:15:14,597 - softwarecenter.db.utils - INFO - software-center-agent finished with status 0
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: Source ID 71 was not found when attempting to remove it
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_new_variant: assertion 'value != NULL' failed
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_get_type: assertion 'value != NULL' failed
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_builder_end: assertion 'GVSB(builder)->offset >= GVSB(builder)->min_items' failed
return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:585: Warning: g_variant_unref: assertion 'value != NULL' failed
return super(MainContext, self).iteration(may_block)
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1091, in on_menuitem_view_all_activate
if self.menuitem_view.blocked:
AttributeError: 'MenuItem' object has no attribute 'blocked'
有谁知道我需要做什么才能让我的系统运行稳定吗?我一直不太理解这一点,如果有人能给我帮助,我将不胜感激。一边悄悄抽泣一边扯着头发似乎对解决问题没有帮助。