Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在Kali(Debian)中安装mono-devel时,包具有未满足的依赖关系_Linux_Mono_Dependencies_Debian - Fatal编程技术网

Linux 在Kali(Debian)中安装mono-devel时,包具有未满足的依赖关系

Linux 在Kali(Debian)中安装mono-devel时,包具有未满足的依赖关系,linux,mono,dependencies,debian,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

我尝试安装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安装
,但仍然没有成功。有人能帮忙吗?谢谢

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

echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
网站上安装过程中提到的PPA存储库是针对UBUNTU(Debian 10)的,而不是针对所提到的其他发行版(可能是)

解决方案:

  • 删除
    /etc/apt/sources.list.d/
    文件夹中的
    mono.list
    文件
  • 运行
    sudo apt update
  • 最后,运行
    sudoapt安装mono-devel

  • 尝试从源代码处编译mono,如果无法在发行版上安装这些包,这将是运行mono的唯一方法。是否混合了一些来自外部apt源代码的包?