我将 Linux Ubuntu 升级到 Ubuntu 18.04,但软件中心似乎不见了。我尝试从命令行安装。但最终出现以下错误。
> user@user-HP-ProBook-450-G2:~$ sudo apt-get install software-center
> [sudo] password for user: 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
> user@user-HP-ProBook-450-G2:~$ ^C user@user-HP-ProBook-450-G2:~$
答案1
您的命令对于两者来说都是错误的,它是:
sudo apt-get install software-center*
末尾带有星号 (*),以下情况也一样:
sudo apt install gnome-software*
然而,商店经常崩溃,目前无法允许或保持打开足够长的时间来安装软件,这是一个混乱的问题。
答案2
安装 GNOME tweak 后我也遇到过这种情况。我所做的就是安装 GNOME 软件,软件中心重新出现在我的 dock 上(因为我收藏了它)
sudo apt install gnome-software