软件中心未在 16.04 中加载

软件中心未在 16.04 中加载

差不多就是这样。打开软件中心时“全部”选项卡加载正常,但当我尝试搜索任何内容或访问任何其他选项卡时,它会出现一个无限的加载屏幕。如果有帮助的话,我正在 64 位计算机上运行最近更新的 ubuntu 16.04。

我尝试过在旧版本的Ubuntu中解决类似问题的方法但没有任何效果。

当我从终端运行软件中心时,我得到了这个:

zephyzu@zephyzu:~$ 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
/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
2016-05-28 14:21:23,340 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
2016-05-28 14:21:24,079 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
2016-05-28 14:21:24,082 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'
2016-05-28 14:21:24,119 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2016-05-28 14:21:24,905 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: unsupported pickle protocol: 3
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/videoplayer.py:29: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gst
/usr/bin/software-center:184: Warning: Source ID 70 was not found when attempting to remove it
  Gtk.main()
/usr/bin/software-center:184: Warning: Source ID 142 was not found when attempting to remove it
  Gtk.main()
2016-05-28 14:21:27,507 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: unsupported pickle protocol: 3
2016-05-28 14:21:28,779 - softwarecenter.db.utils - INFO - software-center-agent finished with status 0

答案1


您可以安装经典的“软件中心”,它“始终”可以正常工作:

$ sudo apt-get update && sudo apt-get install synaptic


答案2

您的 APT Xapian 索引文件有问题:

2016-05-28 14:21:27,507 - softwarecenter.db.update - WARNING - failed to load file /var/lib/apt-xapian-index/cataloged_times.p: unsupported pickle protocol: 3

将其移动到另一个文件:

sudo mv /var/lib/apt-xapian-index/cataloged_times.p /var/lib/apt-xapian-index/cataloged_times.p.backup

强制重建:

sudo update-apt-xapian-index -f

相关内容