所以,我们的单声道从3.12.0更新到4.0.1并且导致了nunit的一系列问题,如下所示:New SIGABRT after upgrading to Mono 4 running NUnit tests虽然升级到4.1.0快照修复了这些问题,但它还没有正式发布,我们不想使用它。相反,我们想降级回3.12.0,但似乎我甚至不能这样做。正在运行apt-cache showpkg mono-complete
只给我以下选项
matt@matt-T420:~/vw3$ apt-cache showpkg mono-complete
Package: mono-complete
Versions:
4.0.1-0xamarin4 (/var/lib/apt/lists/download.mono-project.com_repo_debian_dists_wheezy_main_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-amd64_Packages
MD5: dacc30c6a4347277b44c68a99c998d5f
Description Language: en
File: /var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_vivid_universe_i18n_Translation-en
MD5: dacc30c6a4347277b44c68a99c998d5f
3.2.8+dfsg-4ubuntu4 (/var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-amd64_Packages)
Description Language:
File: /var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_vivid_universe_binary-amd64_Packages
MD5: dacc30c6a4347277b44c68a99c998d5f
Description Language: en
File: /var/lib/apt/lists/ca.archive.ubuntu.com_ubuntu_dists_vivid_universe_i18n_Translation-en
MD5: dacc30c6a4347277b44c68a99c998d5f
但是,如果我浏览http://origin-download.mono-project.com/repo/debian/dists/wheezy/snapshots/3.12.0/,我可以看到该包,但我不确定如何将其添加到我的回购列表中。我不知道如何将echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
修改为pint到3.12.0文件夹。
我基本上只是想吹掉单声道4.0,重新安装3.12.0,然后在那个版本上固定/保持它。有人可以帮忙吗?
答案 0 :(得分:9)
首先删除mono 4.0.1
sudo apt-get remove mono-complete
sudo apt-get purge mono-complete
sudo apt-get autoremove
经过几次尝试后,我修改了这样的回购,这似乎有效:
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
然后跑了:
sudo apt-get update
sudo apt-get install mono-complete
mono --version
我现在正在运行3.12
答案 1 :(得分:3)
使用apt降级软件包有点痛苦。
你基本上需要" apt-get install libfoo = 3.12.1-0xamarin4"在同一命令行中使用每个升级的lib。
来源:https://twitter.com/directhex/status/596382226121674752(来自Mono套餐的创建者)
您可以按照http://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases
添加旧软件包repo的快照