我全新安装了 16.04。当我打开软件中心时,它显示了类别,但类别中的所有内容都是空的,没有列出任何软件,任何搜索都找不到结果。所以我决定重新安装软件中心,看看是否有帮助。现在无法安装:
root@adam:~/Downloads# sudo apt-get install ubuntu-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-software : Depends: gnome-software (= 3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@adam:~/Downloads# sudo apt-get install gnome-software
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gnome-software : Depends: gnome-software-common (= 3.20.1+git20160420.1.ca63436.ubuntu-xenial-0ubuntu2) but 3.20.1+git20160426.1.a976144-ubuntu-xenial-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
root@adam:~/Downloads# sudo apt-get install gnome-software-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-software-common is already the newest version (3.20.1+git20160426.1.a976144-ubuntu-xenial-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@adam:~/Downloads#
答案1
如果您再次遇到类似的问题,我会尝试 sudo apt-get update ,然后尝试 sudo apt-get -f install,它应该可以解决大多数依赖关系问题。
答案2
Gnome 软件就像旧的 Ubuntu 软件中心。第一次运行时有点懒。加载有点慢。只需关闭它并再次打开。它最终会加载应用程序列表。我也遇到过这种情况。一直都是。但我仍然更喜欢它而不是 Ubuntu 软件中心。它运行速度肯定更快。有些应用程序仍然缺失,可能是因为它们还没有 xenial 源。这对 Ubuntu 来说是一个彻底的改变,它仍然很新,随着时间的推移它会变得更加流畅。