我使用这个步骤在Centos7上安装mono,它对我有用了好几天。
mkdir /mono
wget http://download.mono-project.com/repo/xamarin.gpg -P /mono
rpm --import /mono/xamarin.gpg
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
yum install -y mono-complete
现在它一直在失败,无法安装单声道:
failure: repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2 from download.mono-project.com_repo_centos_: [Errno 256] No more mirrors to try.
http://download.mono-project.com/repo/centos/repodata/bd6e4ea2b820dd6b71fd4fca044931e043e411cc2ba8e362b8249951474224b6-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
目前存储库是否存在问题?或者我应该从不同的来源安装它?
它是在北欧地区的Azure上运行的Centos7主机。
答案 0 :(得分:0)
只需按照以下步骤安装单声道
即可yum-config-manager --add-repo http://download.mono-project.com/repo/centos-beta/
yum repolist
最后
yum install -y mono-complete