在Kali(Debian)中安装mono-devel时,软件包具有未满足的依赖项

时间:2016-04-05 13:15:56

标签: linux mono dependencies debian

我尝试在终端中安装mono-devel并输入sudo apt-get mono-devel。但失败并得到以下结果:

~# apt-get install mono-devel
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-devel : Depends: libgamin0 but it is not installable
          Depends: libgnomeui-0 (>= 2.22.0) but it is not installable
          Depends: libmono-cil-dev (= 4.2.3.4-0xamarin2) but it is not going to be installed
          Recommends: mono-csharp-shell but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我尝试了apt-get -f install但仍无效。有人可以帮忙吗?谢谢!

1 个答案:

答案 0 :(得分:0)

您可能在 Linux 发行版中下载了错误的 PPA。

ProductID

mono-project 网站上的安装过程中提到的 PPA 存储库适用于 UBUNTU (Debian 10),而不适用于 here 中提到的其他发行版(可能是)。

解决方案:

  1. 删除 echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list 文件夹中的 mono-official-stable.list 文件。
  2. 运行 /etc/apt/sources.list.d/
  3. 最后,运行 sudo apt update
相关问题