如何在 Ubuntu 上安装最新版本的 Mono 和 MonoDevelop?

How to install the latest version of Mono and MonoDevelop on Ubuntu?(如何在 Ubuntu 上安装最新版本的 Mono 和 MonoDevelop?)
本文介绍了如何在 Ubuntu 上安装最新版本的 Mono 和 MonoDevelop?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的系统上安装最新版本的 Mono 框架和 MonoDevelop.昨天我尝试在 Ubuntu(14.04 LTS)和 Debian(V8.2)上安装.两个安装都失败了.我使用了这个官方安装指南.

I'm trying to install the latest version of the Mono framework and MonoDevelop on my system. Yesterday I tried the installation on Ubuntu (14.04 LTS) and on Debian (V8.2) today. Both installations failed. I used this official installation guide.

http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives

我执行了这个命令.

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update

出现以下错误.

root@debian:/home/administrator# 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.1.102-0xamarin1) but it is not going to be installed
                 Depends: mono-4.0-service (= 4.2.1.102-0xamarin1) but it is not going to be installed
                 Depends: libmono-cil-dev (= 4.2.1.102-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有人知道解决办法吗?

非常感谢,乔迪

推荐答案

试试以下方法:

sudo apt-get install libjpeg62-turbo

如果你得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libjpeg62-turbo is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source E: 
Package 'libjpeg62-turbo' has no installation candidate

假设您使用的是 ARCH 64 位系统,那么您可以通过以下方式获取此软件包:

wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.4.1-2_amd64.deb

安装 deb:

sudo dpkg --install --recursive --auto-deconfigure libjpeg62-turbo_1.4.1-2_amd64.deb 

现在安装 mono/monodevelop:

sudo apt-get install mono-devel
sudo apt-get install monodevelop

回复:http://sushihangover.github.io/mono-ubuntu-broken/(免责声明,这是我的博文)

Re: http://sushihangover.github.io/mono-ubuntu-broken/ (disclaimer, this is my blog post)

这篇关于如何在 Ubuntu 上安装最新版本的 Mono 和 MonoDevelop?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

quot;dotnet restorequot; fails with quot;SSL peer certificate or SSH remote key was not OKquot;(“dotnet 恢复因“SSL 对等证书或 SSH 远程密钥不正常而失败)
Accessing network path using C# from Ubuntu(在Ubuntu中使用C#访问网络路径)
How to setup virtual Gpio loopback(如何设置虚拟GPIO环回)
HttpWebRequest NameResolutionFailure exception in .NET (with Mono on Ubuntu)(.NET 中的 HttpWebRequest NameResolutionFailure 异常(在 Ubuntu 上使用 Mono))
Installing Mono 3.x in Ubuntu/Debian(在 Ubuntu/Debian 中安装 Mono 3.x)
Method #39;RouteCollection.get_AppendTrailingSlash#39; not found when using Razor Url helpers in ASP.NET MVC 5 Mono(在 ASP.NET MVC 5 Mono 中使用 Razor Url 帮助程序时找不到方法“RouteCollection.get_AppendTrailingSlash)