酷徒LOGO

在 Ubuntu 16.04中,重新安装软件中心


问题:

我想删除并重新安装software-center包,我移除了它,但现在无法重新安装。

我尝试了这些命令,但没有成功:


sudo apt-get update


sudo apt-get install software-center



如何重新安装software-center

当我执行install命令时,得到:


$ sudo apt-get install software-center


Reading package lists... Done


Building dependency tree 


Reading state information... Done


Package software-center is not available, but is referred to by another package.


This may mean that the package is missing, has been obsoleted, or


is only available from another source



E: Package 'software-center' has no installation candidate




答案1:

sudo apt install --reinstall ubuntu-software




答案2:

Ubuntu Software中心已经被新版Ubuntu的GNOME软件中心所取代。

要安装新的GNOME软件中心,请尝试以下命令:


sudo add-apt-repository ppa:ubuntu-desktop/gnome-software


sudo apt-get update


sudo apt-get install gnome-software packagekit




答案3:

只需运行以下命令。


sudo apt-get install -f


sudo apt-get update


sudo apt-get install software-center








Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备17041772号-2  |  如果智培  |  酷兔英语  |  帮酷