这是我得到的错误
Traceback (most recent call last):
File "/usr/bin/software-center", line 130, in <module>
app = SoftwareCenterAppGtk3(options, args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 373, in __init__
self.cache, self.icons)
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/globalpane.py", line 32, in __init__
self.back_forward.set_valign(Gtk.Align.CENTER)
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 313, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 165, in __getattr__
setattr(wrapper, value_name, wrapper(value_info.get_value()))
ValueError: invalid enum value: 4
答案1
让您不爽的软件包是python-gi
,可能是配置错误。从命令行重新安装它
sudo apt-get purge python-gi
sudo apt-get install python-gi
以防万一,请确保它不会尝试删除其他任何内容(如果要删除,它会询问)。您也可以尝试使用software-center
。