16.04 Gnome 软件中心无法打开。当我单击启动器上的图标时,它只会显示加载图标,仅此而已。
我查了一下,什么都不起作用。我什么也没做,就是打不开。这是今天新安装的。当它工作正常时,我首先点击了“尝试 Ubuntu”选项,它会打开,但由于我实际安装了它,所以它不会打开。
在终端输入后apt policy software-center gnome-center
,我得到了这个:
software-center:
Installed: (none)
Candidate: (none)
Version table:
gnome-software:
Installed: 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1
Candidate: 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1
Version table:
*** 3.20.1+git20160617.1.0440874.ubuntu-xenial-0ubuntu1~16.04.1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
打字后software-center
,它给了我
The program 'software-center' is currently not installed. You can install it by typing:
sudo apt install software-center
输入之后gnome-software
,没有显示任何内容。
输出gnome-software --verbose
如下:
(gnome-software:28808): Gs-DEBUG: compatible-project: GNOME
(gnome-software:28808): Gs-DEBUG: compatible-project: KDE
(gnome-software:28808): Gs-DEBUG: compatible-project: XFCE
(gnome-software:28808): As-DEBUG: run GsPlugin::setup
(gnome-software:28808): Gs-DEBUG: searching for plugins in /usr/lib/gs-plugins-9
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_provenance.so: provenance
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_epiphany.so: epiphany
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_moduleset.so: moduleset
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_apt.so: apt
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_appstream.so: appstream
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_dpkg.so: dpkg
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_fwupd.so: fwupd
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_ubuntu-reviews.so: ubuntu-reviews
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_menu-spec-categories.so: menu-spec-categories
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_menu-spec-refine.so: menu-spec-refine
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_icons.so: icons
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_dummy.so: dummy
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_snappy.so: snappy
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_hardcoded-featured.so: hardcoded-featured
(gnome-software:28808): Gs-DEBUG: opened plugin /usr/lib/gs-plugins-9/libgs_plugin_hardcoded-blacklist.so: hardcoded-blacklist
(gnome-software:28808): Gs-DEBUG: provenance [0.0] to be ordered after apt [0.0] so promoting to [1.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: epiphany [0.0] to be ordered after appstream [0.0] so promoting to [1.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: moduleset [0.0] to be ordered after menu-spec-categories [0.0] so promoting to [1.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: apt [0.0] to be ordered after appstream [0.0] so promoting to [1.0]
(gnome-software:28808): Gs-DEBUG: provenance [1.0] to be ordered after apt [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: appstream [0.0] to be ordered after menu-spec-categories [0.0] so promoting to [1.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: epiphany [1.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: moduleset [1.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: apt [1.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: provenance [2.0] to be ordered after apt [2.0] so promoting to [3.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: ubuntu-reviews [0.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: menu-spec-refine [0.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: icons [0.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: icons [2.0] to be ordered after epiphany [2.0] so promoting to [3.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): Gs-DEBUG: hardcoded-blacklist [0.0] to be ordered after appstream [1.0] so promoting to [2.0]
(gnome-software:28808): Gs-DEBUG: cannot find plugin 'packagekit-refine'
(gnome-software:28808): As-DEBUG: run GsPlugin::dpkg(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::fwupd(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::dummy(gs_plugin_initialize)
(gnome-software:28808): GsPlugin-DEBUG: disabling 'dummy' as not in self test
(gnome-software:28808): As-DEBUG: run GsPlugin::snappy(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::appstream(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::epiphany(gs_plugin_initialize)
(gnome-software:28808): GsPlugin-DEBUG: disabling 'epiphany' as epiphany does not exist
(gnome-software:28808): As-DEBUG: run GsPlugin::moduleset(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::apt(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::ubuntu-reviews(gs_plugin_initialize)
(gnome-software:28808): As-DEBUG: run GsPlugin::provenance(gs_plugin_initialize)
(gnome-software:28808): Gs-DEBUG: [enabled] 0.0 -> dpkg
(gnome-software:28808): Gs-DEBUG: [enabled] 0.0 -> fwupd
(gnome-software:28808): Gs-DEBUG: [enabled] 0.0 -> menu-spec-categories
(gnome-software:28808): Gs-DEBUG: [disabled] 0.0 -> dummy
(gnome-software:28808): Gs-DEBUG: [enabled] 0.0 -> snappy
(gnome-software:28808): Gs-DEBUG: [enabled] 0.0 -> hardcoded-featured
(gnome-software:28808): Gs-DEBUG: [enabled] 1.0 -> appstream
(gnome-software:28808): Gs-DEBUG: [disabled] 2.0 -> epiphany
(gnome-software:28808): Gs-DEBUG: [enabled] 2.0 -> moduleset
(gnome-software:28808): Gs-DEBUG: [enabled] 2.0 -> apt
(gnome-software:28808): Gs-DEBUG: [enabled] 2.0 -> ubuntu-reviews
(gnome-software:28808): Gs-DEBUG: [enabled] 2.0 -> menu-spec-refine
(gnome-software:28808): Gs-DEBUG: [enabled] 2.0 -> hardcoded-blacklist
(gnome-software:28808): Gs-DEBUG: [enabled] 3.0 -> provenance
(gnome-software:28808): Gs-DEBUG: [enabled] 3.0 -> icons
Timeout was reached
(gnome-software:28808): Gs-DEBUG: emitting finished(<general>)
(gnome-software:28808): As-DEBUG: run GsPlugin::fwupd(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::snappy(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::appstream(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::moduleset(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::apt(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::ubuntu-reviews(gs_plugin_destroy)
(gnome-software:28808): As-DEBUG: run GsPlugin::provenance(gs_plugin_destroy)
有人能帮帮我吗?谢谢。
答案1
可以通过删除文件 来解决此问题~/.local/share/gnome-software
。启动 gnome-software 时将重新创建该文件。因此,请确保您没有正在运行的ubuntu-software
或实例gnome-software
:
$ killall ubuntu-software
$ killall gnome-software
进而:
$ rm -r ~/.local/share/gnome-software
此解决方案最初提出这里