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

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

问题描述

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

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)

.NET core 现在支持 Ubuntu 14.04、16.04、16.10 &Linux Mint 17.

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

请查看官方页面了解所有详情.

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

Today (May 2016) only Ubuntu 14.04 is supported.

我通过添加在 Ubuntu 15.10 上成功安装

I successfully install it on Ubuntu 15.10 by adding

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天全站免登陆