安装旧版本的 Mono [英] Install Older Version of Mono

查看:28
本文介绍了安装旧版本的 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 文件中没有任何用于单声道的 alpha/beta 存储库.

降级的基本步骤:

sudo apt-get remove mono-complete# 编辑您的 mono-xamarin.list 并将其固定到您选择的版本.sudo apt-get 更新sudo apt-get install mono-complete

<块引用>

访问旧版本如果出于某种原因您想固定旧版本Mono 版本而不是更新到最新版本,您可以修改Debian 存储库到wheezy/snapshots/X.XX.X"而不是wheezy".例如,wheezy/snapshots/3.10.0"会将您锁定到该版本.

这些快照将在下一个主要版本后立即停止接收更新Mono 版本被上传 - 例如,只要 Mono 3.12 得到已上传,3.10 将永远不会收到更新.

在 RPM 发行版中,强制在您的包中使用包版本manager - 所有旧版本都在 YUM 元数据中发布,并且应该可用.

参考:http://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases

参考:可用版本:

http://download.mono-project.com/repo/debian/池/主/m/mono/

Today my Ubuntu updated Mono to 4.2.1.102. It will not allow a certain program I absolutely need to run. How can I down-grade it to 4.0.5.1? I have tried...

sudo apt-get install mono-complete=4.0.5.1

That doesn't work.

解决方案

Edit your /etc/apt/sources.list.d/mono-xamarin.list and change:

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

to:

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

That will pin it to version 4.0.5.1.

FYI: Make sure that you do not have any alpha/beta repos for mono in any of your /etc/apt/sources/list.d/xxxxx.list files.

Basic Steps to Downgrade:

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.

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

Ref: Versions available:

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

这篇关于安装旧版本的 Mono的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆