无法在 Bionic 上安装 Cockpit

无法在 Bionic 上安装 Cockpit

我正在尝试使用安装 cockpitvbyapt-get install cockpit但出现以下错误。

The following packages have unmet dependencies: 
cockpit : Depends: cockpit-system (= 172-1~ubuntu18.04.1) but it is not going to be installed 
          Recommends: cockpit-storaged (= 172-1~ubuntu18.04.1) but it is not going to be installed 
E: Unable to correct problems, you have held broken packages.

只需谷歌搜索和驾驶舱操作说明在 Ubuntu 中,我还添加了以下行source.list

deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

概述如下Ubuntu 帮助,然后更新

sudo apt-get update

然后尝试安装

sudo apt-get install cockpit

但仍然出现以下错误:

The following packages have unmet dependencies:
cockpit : Depends: cockpit-system (= 172-1~ubuntu18.04.1) but it is not going to be installed
          Recommends: cockpit-storaged (= 172-1~ubuntu18.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

请注意,cockpit 存在于 Bionic 的官方存储库中,因此安装只需执行以下操作:

sudo apt update && sudo apt install cockpit

注意:删除您添加的那些 repos 并通过更新sudo apt update进行安装。

在与 OP 进行适当互动后,我发现问题在于他缺少 repos universesources.list因此为了克服这个问题,我们遵循了以下步骤:

  1. 添加仓库:

     sudo add-apt-repository universe
    
  2. 相应更新:

     sudo apt update
    
  3. 现在安装:

     sudo apt install cockpit
    

相关内容