Sim*_*ons 2 updates update-manager package-management apt dependencies
我正在尝试使用安装 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.
Run Code Online (Sandbox Code Playgroud)
通过Ubuntu的一些谷歌搜索和驾驶舱指令,我还添加了以下行source.list
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)
如Ubuntu 帮助中所述,然后更新
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
然后尝试安装
sudo apt-get install cockpit
Run Code Online (Sandbox Code Playgroud)
但仍然收到以下错误:
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.
Run Code Online (Sandbox Code Playgroud)
请注意 cockpit 存在于 Bionic 的官方存储库中,因此安装只需执行以下操作:
sudo apt update && sudo apt install cockpit
Run Code Online (Sandbox Code Playgroud)
注意:删除您添加的那些存储库和更新,sudo apt update然后继续安装。
在与 OP 进行适当互动后,我发现问题在于他缺少universerepos,sources.list因此为了克服我们遵循以下步骤:
添加回购:
sudo add-apt-repository universe
Run Code Online (Sandbox Code Playgroud)
相应更新:
sudo apt update
Run Code Online (Sandbox Code Playgroud)
现在安装:
sudo apt install cockpit
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1905 次 |
| 最近记录: |