mono - 安装旧版本的 Mono

标签 mono

今天我的 Ubuntu 将 Mono 更新到了 4.2.1.102。它不会允许我绝对需要运行的某个程序。如何将其降级到 4.0.5.1?我已经尝试过了...

sudo apt-get install mono-complete=4.0.5.1

这行不通。

最佳答案

编辑您的/etc/apt/sources.list.d/mono-xamarin.list并更改:

deb http://download.mono-project.com/repo/debian wheezy main

至:

deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5.1 main

这会将其固定到版本 4.0.5.1。

仅供引用:确保您的任何/etc/apt/sources/list.d/xxxxx.list 文件中没有任何 mono 的 alpha/beta 存储库。

降级的基本步骤:

sudo apt-get remove mono-complete
# Edit your mono-xamarin.list and pin it to the version of your choice.
sudo apt-get update
sudo apt-get install mono-complete

Accessing older releases If for some reason you want to pin an older version of Mono rather than updating to the latest, you can modify the Debian repository to “wheezy/snapshots/X.XX.X” instead of “wheezy”. For example, “wheezy/snapshots/3.10.0” will lock you to that version.

These snapshots will cease receiving updates as soon as the next major Mono version gets uploaded - for example, as soon as Mono 3.12 gets uploaded, 3.10 will never receive updates.

On RPM distributions, force the package version in your package manager - all older versions are published in the YUM metadata and should be available.

引用号:http://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases

引用:可用版本:

http://download.mono-project.com/repo/debian/pool/main/m/mono/

关于mono - 安装旧版本的 Mono,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33763177/

相关文章:

mvvm - 在 MonoDroid/MonoTouch 中使用 ViewModel

mono - 有人使用 uClibc 为 MIPS 64 交叉编译 Mono 吗?

c# - Linux上C#/mono判断无线网卡的方法

C# 从 EC 公钥字节生成 PublicKey/IPublicKey 对象?

c# - 如何在 Mono.Cecil 中创建 Ldarg_S 指令?

c# - 是否可以在 Mono C# 程序中发送 unix 信号?

c# - 在 OS X 上尝试 Mono - 获取 "Error: Framework ' Mono/.NET 4. 0' not installed."

assembly - 单声道 ASM 一代

apache - 如何在运行 Apache2 的单个虚拟主机上托管多个 MVC3 站点?