i currently installed mono-complete and monodevelop from the mono official site and entered this commands below
我目前在mono官方网站上安装mono-complete和monodevelop,并输入以下命令。
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list sudo apt-get update
sudo apt-get install mono-complete
sudo apt-get install monodevelop
on my ubuntu 16.04 but when i open monodevelop IDE and try to create a new solution don't find the asp.net templates as expected therefor am not allowed to create web projects like asp.net mvc! the only templates what i get is this
在我的ubuntu 16.04上,但是当我打开monodevelop IDE并尝试创建一个新的解决方案时,不要像期望的那样找到asp.net模板,因为我不允许创建像asp.net mvc这样的web项目!我得到的唯一模板是这个
after that i removed mono packages from synaptic and reinstalled it again from ubuntu software center but i got the same result
之后,我从synaptic删除了mono软件包,并在ubuntu软件中心重新安装,但得到了相同的结果
and this is what i got in terminal when i run sudo apt-get update
当我运行sudo apt-get更新时,这就是我在终端所得到的。
W: gpgv:/var/lib/apt/lists/ppa.launchpad.net_ermshiperete_monodevelop-beta_ubuntu_dists_xenial_InRelease: The repository is insufficiently signed by key 6F242C166A1B440BA3C43CBD48B6803E839ECBBE (weak digest)
W: gpgv:/var/lib/apt/lists/download.mono-project.com_repo_debian_dists_wheezy_InRelease: The repository is insufficiently signed by key 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF (weak digest)
4 个解决方案
#1
13
I can confirm that the suggestion by Abu above does work.
我可以确认以上Abu的建议是有效的。
Tonight I have tested it on a clean Ubuntu 16.04 (Mate) instance running within VirtualBox, and I have been able to create a new MVC/Razor project, and can compile my (quite extensive) MVC app.
今晚,我在运行在VirtualBox中的一个干净的Ubuntu 16.04 (Mate)实例上对它进行了测试,我能够创建一个新的MVC/Razor项目,并且可以编译我的(相当广泛的)MVC应用程序。
Setup using the following commands, as per the Mono Project documentation (at http://www.mono-project.com/docs/getting-started/install/linux/), but with the change from wheezy to alpha.
按照Mono项目文档(见http://www.mono-project.com/docs/getting-started/install/linux/),使用以下命令进行设置,但是需要从wheezy更改为alpha。
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
Then, install Mono itself:
然后,安装Mono本身:
sudo apt-get install mono-devel mono-complete ca-certificates-mono mono-xsp4
Then, to install the specific version of MonoDevelop that gives you a working ASP.NET add-in:
然后,安装MonoDevelop的特定版本,它将为您提供一个工作的ASP。NET插件:
sudo apt-get install monodevelop=5.10.0.871-0xamarin2
UPDATE: I have written this up as a blog post on my website, so hopefully this brings further attention to this issue, which really shouldn't be happening in an LTS. The full post is at https://brendaningram.com/article/how-to-fix-monodevelop-on-ubuntu-16-04/
更新:我已经在我的网站上写了这篇博文,希望这能让大家更加关注这个问题,而这真的不应该发生在LTS中。全文载于https://brendaningram.com/article/howto -fix-monodevelop-on ubuntu- 1604/
#2
9
I had the exact same problem with ubuntu 16.04, and solved it by doing the following :
我对ubuntu 16.04也有同样的问题,通过以下方法解决了:
first add alpha updates channel
首先添加alpha更新通道
echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin-alpha.list
sudo apt-get update
then force install this version of monodevelop
然后强制安装这个版本的monodevelop
5.10.0.871-0xamarin2
#3
6
Actually it's completely unnecessary to add alpha updates channel. You still can use release channel. Just do this:
实际上完全没有必要添加alpha更新通道。您仍然可以使用发布通道。只是这样做:
sudo apt-get install mono-complete ca-certificates-mono mono-xsp4
sudo apt-get install monodevelop=5.10.0.871-0xamarin2
Then asp.net adding will be installed into MonoDevelop.
然后asp.net添加将被安装到MonoDevelop中。
#4
2
As Arsenius said you don't need add alpha updates, it worked for me, also I didnt need to uninstall all the packages. I just did this:
正如阿森尼乌斯所说,您不需要添加alpha更新,它对我很有用,而且我也不需要卸载所有的包。我只是这样做:
sudo apt-get autoremove monodevelop
sudo apt-get purge monodevelop
sudo apt-get install monodevelop=5.10.0.871-0xamarin2
#1
13
I can confirm that the suggestion by Abu above does work.
我可以确认以上Abu的建议是有效的。
Tonight I have tested it on a clean Ubuntu 16.04 (Mate) instance running within VirtualBox, and I have been able to create a new MVC/Razor project, and can compile my (quite extensive) MVC app.
今晚,我在运行在VirtualBox中的一个干净的Ubuntu 16.04 (Mate)实例上对它进行了测试,我能够创建一个新的MVC/Razor项目,并且可以编译我的(相当广泛的)MVC应用程序。
Setup using the following commands, as per the Mono Project documentation (at http://www.mono-project.com/docs/getting-started/install/linux/), but with the change from wheezy to alpha.
按照Mono项目文档(见http://www.mono-project.com/docs/getting-started/install/linux/),使用以下命令进行设置,但是需要从wheezy更改为alpha。
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
Then, install Mono itself:
然后,安装Mono本身:
sudo apt-get install mono-devel mono-complete ca-certificates-mono mono-xsp4
Then, to install the specific version of MonoDevelop that gives you a working ASP.NET add-in:
然后,安装MonoDevelop的特定版本,它将为您提供一个工作的ASP。NET插件:
sudo apt-get install monodevelop=5.10.0.871-0xamarin2
UPDATE: I have written this up as a blog post on my website, so hopefully this brings further attention to this issue, which really shouldn't be happening in an LTS. The full post is at https://brendaningram.com/article/how-to-fix-monodevelop-on-ubuntu-16-04/
更新:我已经在我的网站上写了这篇博文,希望这能让大家更加关注这个问题,而这真的不应该发生在LTS中。全文载于https://brendaningram.com/article/howto -fix-monodevelop-on ubuntu- 1604/
#2
9
I had the exact same problem with ubuntu 16.04, and solved it by doing the following :
我对ubuntu 16.04也有同样的问题,通过以下方法解决了:
first add alpha updates channel
首先添加alpha更新通道
echo "deb http://download.mono-project.com/repo/debian alpha main" | sudo tee /etc/apt/sources.list.d/mono-xamarin-alpha.list
sudo apt-get update
then force install this version of monodevelop
然后强制安装这个版本的monodevelop
5.10.0.871-0xamarin2
#3
6
Actually it's completely unnecessary to add alpha updates channel. You still can use release channel. Just do this:
实际上完全没有必要添加alpha更新通道。您仍然可以使用发布通道。只是这样做:
sudo apt-get install mono-complete ca-certificates-mono mono-xsp4
sudo apt-get install monodevelop=5.10.0.871-0xamarin2
Then asp.net adding will be installed into MonoDevelop.
然后asp.net添加将被安装到MonoDevelop中。
#4
2
As Arsenius said you don't need add alpha updates, it worked for me, also I didnt need to uninstall all the packages. I just did this:
正如阿森尼乌斯所说,您不需要添加alpha更新,它对我很有用,而且我也不需要卸载所有的包。我只是这样做:
sudo apt-get autoremove monodevelop
sudo apt-get purge monodevelop
sudo apt-get install monodevelop=5.10.0.871-0xamarin2