在Kali(Debian)中安装mono-devel时,软件包具有未满足的依赖项 [英] Packages have unmet dependencies when installing mono-devel in Kali (Debian)

查看:162
本文介绍了在Kali(Debian)中安装mono-devel时,软件包具有未满足的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装mono-devel并在终端中键入 sudo apt-get mono-devel .但是失败了,得到了以下结果:

I tried to install mono-devel and typed sudo apt-get mono-devel in the terminal. But failed and got the following results:

~# 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 ,但仍然无法正常工作.有人可以帮忙吗?谢谢!

I tried apt-get -f install but still not work. Could anyone help? Thanks!

推荐答案

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

You might have downloaded the wrong PPA in your Linux distribution.

echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

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

The PPA repository mentioned in the Installation process on mono-project website is for UBUNTU (Debian 10) not for other distributions (might be) as mentioned here.

解决方案:

  1. 删除/etc/apt/sources.list.d/文件夹中的 mono-official-stable.list 文件.
  2. 运行 sudo apt更新.
  3. 最后,运行 sudo apt install mono-devel .
  1. Delete mono-official-stable.list file in /etc/apt/sources.list.d/ folder.
  2. Run sudo apt update.
  3. Finally, run sudo apt install mono-devel.

这篇关于在Kali(Debian)中安装mono-devel时,软件包具有未满足的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆