可能重复:
软件中心打不开
我打开 Ubuntu 软件中心 1 秒后就关闭了。这是我用终端打开它时得到的结果
jeggy@localhost:~$ software-center
2012-05-29 17:33:54,755 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2012-05-29 17:33:54,832 - softwarecenter.db.database - INFO - open() database: path=None use_axi=True use_agent=True
2012-05-29 17:33:55,217 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'
2012-05-29 17:33:55,696 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2012-05-29 17:33:55,891 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
Traceback (most recent call last):
File "/usr/bin/software-center", line 176, in <module>
app.run(args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1358, in run
self.show_available_packages(args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1288, in show_available_packages
self.view_manager.set_active_view(ViewPages.AVAILABLE)
File "/usr/share/software-center/softwarecenter/ui/gtk3/session/viewmanager.py", line 149, in set_active_view
view_widget.init_view()
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/availablepane.py", line 133, in init_view
SoftwarePane.init_view(self)
File "/usr/share/software-center/softwarecenter/ui/gtk3/panes/softwarepane.py", line 234, in init_view
self.datadir)
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 886, in __init__
self._layout_page()
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 1185, in _layout_page
self.pkg_statusbar = PackageStatusBar(self)
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py", line 176, in __init__
self.progress.set_data("transparent-bg-hint", True)
AttributeError: 'ProgressBar' object has no attribute 'set_data'
答案1
已知错误,最早出现在 12.10-dev 中,现在似乎影响 12.04?https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1000238
我认为这个问题应该很快就会得到解决,如果您受到上述错误的影响并且无法等待此处的临时解决方法。http://ubuntuforums.org/showpost.php?p=11945803&postcount=31