无法安装mono-gmcs包

时间:2015-10-11 22:10:40

标签: linux mono

我正在尝试在运行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进行安装。

3 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:1)

如果您打算通过mono-complete选择Mono 4. *,请告别许多旧套餐,例如此套餐。它们已经过时了,您不再需要它们了。

编译器统一为一个mcs。

答案 2 :(得分:1)

尝试一下

sudo apt-get install mono-complete=*

它带来了最新版本。

相关问题