景观 - “无法纠正问题,您持有破损的包裹。”

景观 - “无法纠正问题,您持有破损的包裹。”

尝试在全新安装的 Ubuntu Server 18.04 上配置 Landscape Server 18.03 时出现以下情况:

[user]@[server]:~$ sudo apt install landscape-server-quickstart
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:
 landscape-server-quickstart : Depends: landscape-server (>= 18.03- 
0ubuntu18.04.2) but it is not going to be installed
                               Depends: postgresql-10-debversion but it is 
not installable or
                                        postgresql-9.5-debversion but it is 
not installable or
                                        postgresql-9.3-debversion but it is 
not installable
E: Unable to correct problems, you have held broken packages.

编辑:澄清一下,当我运行 时dpkg --get-selections | grep hold,没有任何保留的软件包。系统完全是最新的。运行它并aptitude不能解决任何问题,因为它提供的唯一解决方案是将所有内容保留为当前版本(因此基本上没有安装)。

答案1

我自己解决了这个问题。问题最终是无法安装python-convoy(的依赖项之一),因此我决定手动安装它。我运行了和。由于至少需要 0.4.1 版本,我运行了以将其升级到该版本。然后我运行了,一切都安装得很完美。我剩下要做的就是设置 Landscape,这相当轻松。landscape-serverwget http://mirrors.kernel.org/ubuntu/pool/universe/c/convoy/python-convoy_0.2.1+bzr39-1_all.debdpkg -i python-convoy_0.2.1+bzr39-1_all.deblandscape-serversudo apt upgradesudo apt install landscape-server-quickstart

答案2

解决这个问题的最简单方法是启用“universe”存储库。

sudo add-apt-repository universe

相关内容