无法安装 mono-gmcs 包

Can't install mono-gmcs package

我正在尝试在我的虚拟机 运行 Kali Linux 上安装 mono-gmcs 包,但收到输出

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-gmcs : Depends: mono-mcs (= 3.12.1-0xamarin1) but 4.0.4.1-0xamarin1 is to be installed
E: Unable to correct problems, you have held broken packages.

我正在使用命令sudo apt-get install mono-gmcs安装它。

它说,mono-gmcs 依赖于 mono-mcs (3.12.1-0xamarin1),目前通过 4.0.4.1-0xamarin1 安装。你有版本冲突。降级 xamarin 将解决它 sudo apt-get install packagename=version

如果您打算通过 mono-complete 选择 Mono 4.*,请告别许多旧软件包,例如这个软件包。它们已经过时,您不再需要它们。

编译器已统一到一个mcs。

试试这个

sudo apt-get install mono-complete=*

它带来了最新版本。