Ubuntu-安装.net核心 [英] Ubuntu - Installing .net core

查看:87
本文介绍了Ubuntu-安装.net核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试新的.net核心。我正在按照 https://www.microsoft.com/net/core 上的说明进行操作,但是它不起作用。 / p>

I want to try out the new .net core. I am following instructs at https://www.microsoft.com/net/core, but it is not working.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dotnet-dev-1.0.0-preview1-002702 : Depends: dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我正在运行ubuntu 16.04。

I am running ubuntu 16.04.

推荐答案


更新参见末尾。 (感谢 Prasanna

UPDATED see at the end. (thanks to Prasanna)

。 NET核心现在支持Ubuntu 14.04、16.04、16.10& Linux Mint17。

.NET core now supports Ubuntu 14.04, 16.04, 16.10 & Linux Mint 17.

请检查官方

Please check the official page for all the details.

今天(2016年5月)仅支持Ubuntu 14.04。

Today (May 2016) only Ubuntu 14.04 is supported.

我通过添加

deb http://security.ubuntu.com/ubuntu trusty-security main

到/ etc / apt / sources-list

to /etc/apt/sources-list

完成后,您应该这样做:

Once it's done you should do:

apt-get update

apt-get upgrade

并再次输入命令

apt-get install dotnet-dev-1.0.0-preview1-002702a

它将要求安装额外的软件包;您回答是,您就完成了!

It will ask to install extra package; you reply yes and you are done!

通过键入

dotnet --version

享受!

更新

这篇关于Ubuntu-安装.net核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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