我无法安装 Mono。我添加了 PPA。在执行“sudo apt-get update”和“sudo apt-get upgrade”之后,我尝试“sudo apt-get install mono-complete”,然后我得到了这个:
owner@Linux:~$ sudo apt-get install mono-complete
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-complete : Depends: mono-devel (= 4.2.2.30-0xamarin1) but it is not going to be installed
Depends: mono-4.0-service (= 4.2.2.30-0xamarin1) but it is not going to be installed
Depends: libmono-cil-dev (= 4.2.2.30-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
owner@Linux:~$ dpkg --get-selections | grep hold
owner@Linux:~$
Run Code Online (Sandbox Code Playgroud)
所以什么都没有阻止。我什至去软件和更新并取消选中所有默认来源和我添加的那些只启用这三个:
http://download.mono-project.com/repo/debian wheezy main
http://download.mono-project.com/repo/debian wheezy-apache24-compat main
http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main
Run Code Online (Sandbox Code Playgroud)
另一个“sudo apt-get update”和“sudo apt-get upgrade”,然后我尝试“sudo apt-get install mono-complete”并得到相同的错误。
感谢xangua对我的问题的评论,我看到我添加了一个不适用于 Ubuntu 的 PPA。如果您按照http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives 上的说明进行操作,请确保不要意外添加libgdiplus PPA。