为什么我无法安装 mono-complete?

为什么我无法安装 mono-complete?

当我尝试安装它时,出现以下结果:

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:
 mono-complete : Depends: mono-devel (= 3.12.1-0xamarin1) but it is not going to be installed
                 Depends: mono-4.0-service (= 3.12.1-0xamarin1) but it is not going to be installed
                 Depends: libmono-cil-dev (= 3.12.1-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

为了其他人的利益,这里是我遇到此问题的一个场景:使用最新的Jenkins Docker 存储库,基于 Debian 8“jessie”。

我运行了正常的 Mono 安装说明,包括

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list

然后apt-get install -y mono-devel由于未满足的依赖关系而失败。

我尝试重新加载docker镜像并运行安装没有上面的两个命令。突然就成功了。

显然,最新的(截至 2016 年 3 月 30 日)jenkins 图像不需要 mono 的标准第三方存储库。

相关内容