因此,我们的mono已从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/,则可以看到该软件包,但是不确定如何将其添加到我的仓库 list 中。我不知道如何修改echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list以品脱到该3.12.0文件夹。

我基本上只是想吹走mono-4.0,重新安装3.12.0,然后将其固定/保持在那个版本。有人可以帮忙吗?

最佳答案

首先删除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

10-07 19:45
查看更多