无法在Linux Mint 18.1上安装.NET Core [英] Can't install .NET Core on Linux Mint 18.1

查看:93
本文介绍了无法在Linux Mint 18.1上安装.NET Core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照



我仍然无法直接安装缺少的依赖项:





有什么我可以做的,还是不支持Linux Mint 18.1?

解决方案

  sudo sh -c'echo deb [arch = amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main> /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893

sudo apt-get update

sudo apt-get install dotnet-dev-1.0.1

正在使用18.1

  jamie @ tesla〜/ Downloads $ sudo sh -c'echo  deb [arch = amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main> /etc/apt/sources.list.d/dotnetdev.list'
jamie @ tesla〜/ Downloads $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
执行中:/tmp/tmp.x3h2WeSDru/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
417A0893
gpg:从hkp服务器keyserver.ubuntu.com请求密钥417A0893
gpg:密钥417A0893:公共密钥 MS Open Tech< interop@microsoft.com>导入的
gpg:已处理的总数:1
的gpg:导入的:1(RSA:1)
jamie @ tesla〜/ Downloads $ sudo apt-get update
Ign:1 http ://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena InRelease
Hit:2 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena版本
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial InRelease [2,835 B]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet -release xenial / main amd64软件包[5,741 B]
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:9 http://archive.ubuntu.com/ubunt u xenial-backports InRelease [102 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
15s内获得315 kB(20.2 kB / s)
阅读包装清单...完成
jamie @ tesla〜/下载$ sudo apt-get install dotnet-dev-1.0.1
阅读包装清单...完成
建造依赖关系树
读取状态信息...完成
将安装以下附加软件包:
dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework- microsoft.netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1 libcurl3
liblldb-3.6 libllvm3.6v5 liblttng-ust- ctl2 liblttng-ust0 liburcu4
将安装以下新软件包
dotnet-dev-1.0.1 dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft。 netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1
libcurl3 liblldb-3.6 libllvm3.6v5 liblttng-ust-ctl2 liblttng-ust0 liburcu4
0升级,12升级到新安装,0删除,0不升级。
需要获取113 MB的档案。
执行此操作后,将使用342 MB的额外磁盘空间。
您要继续吗? [Y / n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates / main amd64 libcurl3 amd64 7.47.0-1ubuntu2.2 [186 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial / main amd64 libllvm3.6v5 amd64 1:3.6.2-3ubuntu2 [8,075 kB]
Get:3 https://apt-mo.trafficmanager.net/repos / dotnet-release xenial / main amd64 dotnet-host amd64 1.1.0-preview1-001100-00-1 [33.7 kB]
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-发布xenial / main amd64 dotnet-hostfxr-1.0.1 amd64 1.0.1-1 [123 kB]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial / main amd64 dotnet-sharedframework-microsoft.netcore.app-1.0.4 amd64 1.0.4-1 [22.6 MB]
Get:6 http://archive.ubuntu.com/ubuntu xenial / main amd64 liblldb-3.6 amd64 1 :3.6.2-3ubuntu2 [7,303 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial / universe amd64 liburcu4 amd64 0.9.1-3 [47.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial / universe amd64 liblttng-ust-ctl2 amd64 2.7.1-1 [ 72.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial / universe amd64 liblttng-ust0 amd64 2.7.1-1 [127 kB]
Get:10 https:// apt -mo.trafficmanager.net/repos/dotnet-release xenial / main amd64 dotnet-hostfxr-1.1.0 amd64 1.1.0-1 [124 kB]
Get:11 https://apt-mo.trafficmanager。 net / repos / dotnet-release xenial / main amd64 dotnet-sharedframework-microsoft.netcore.app-1.1.1 amd64 1.1.1-1 [22.9 MB]
Get:12 https://apt-mo.trafficmanager .net / repos / dotnet-release xenial / main amd64 dotnet-dev-1.0.1 amd64 1.0.1-1 [51.4 MB]
以13s(8,498 kB / s)的速度获取了113 MB
未选择的软件包libcurl3:amd64。
(正在读取数据库...当前安装的256441个文件和目录。)
正在准备解压... / libcurl3_7.47.0-1ubuntu2.2_amd64.deb ...
解压libcurl3:amd64( 7.47.0-1ubuntu2.2)...
选择先前未选择的软件包libllvm3.6v5:amd64。
正在准备解压... / libllvm3.6v5_1%3a3.6.2-3ubuntu2_amd64.deb ...
解压libllvm3.6v5:amd64(1:3.6.2-3ubuntu2)...
选择以前未选择的软件包liblldb-3.6。
正在准备解压... / liblldb-3.6_1%3a3.6.2-3ubuntu2_amd64.deb ...
解压liblldb-3.6(1:3.6.2-3ubuntu2)...
选择以前未选择的软件包liburcu4:amd64。
正在准备解压... / liburcu4_0.9.1-3_amd64.deb ...
正在解压liburcu4:amd64(0.9.1-3)...
选择先前未选择的软件包liblttng-ust -ctl2:amd64。
正在准备解压... / liblttng-ust-ctl2_2.7.1-1_amd64.deb ...
解压liblttng-ust-ctl2:amd64(2.7.1-1)...
选择以前未选择的软件包liblttng-ust0:amd64。
准备解压... / liblttng-ust0_2.7.1-1_amd64.deb ...
解压liblttng-ust0:amd64(2.7.1-1)...
选择先前未选择的打包dotnet-host。
正在准备解压缩... / dotnet-host_1.1.0-preview1-001100-00-1_amd64.deb ...
正在解压缩dotnet-host(1.1.0-preview1-001100-00-1) ...
选择以前未选择的软件包dotnet-hostfxr-1.0.1。
正在准备解压缩... / dotnet-hostfxr-1.0.1_1.0.1-1_amd64.deb ...
正在解压缩dotnet-hostfxr-1.0.1(1.0.1-1)...
选择以前未选择的包dotnet-sharedframework-microsoft.netcore.app-1.0.4。
正在准备解压... / dotnet-sharedframework-microsoft.netcore.app-1.0.4_1.0.4-1_amd64.deb ...
正在解压dotnet-sharedframework-microsoft.netcore.app-1.0。 4(1.0.4-1)...
选择先前未选择的软件包dotnet-hostfxr-1.1.0。
正在准备解压... / dotnet-hostfxr-1.1.0_1.1.0-1_amd64.deb ...
解压缩dotnet-hostfxr-1.1.0(1.1.0-1)...
选择以前未选择的包dotnet-sharedframework-microsoft.netcore.app-1.1.1。
正在准备解压... / dotnet-sharedframework-microsoft.netcore.app-1.1.1_1.1.1-1_amd64.deb ...
正在解压dotnet-sharedframework-microsoft.netcore.app-1.1。 1(1.1.1-1)...
选择先前未选择的软件包dotnet-dev-1.0.1。
正在准备解压缩... / dotnet-dev-1.0.1_1.0.1-1_amd64.deb ...
正在解压缩dotnet-dev-1.0.1(1.0.1-1)...
处理libc-bin的触发器(2.23-0ubuntu7)...
处理man-db的触发器(2.7.5-1)...
设置libcurl3:amd64(7.47.0) -1ubuntu2.2)...
设置libllvm3.6v5:amd64(1:3.6.2-3ubuntu2)...
设置liblldb-3.6(1:3.6.2-3ubuntu2)。 ..
设置liburcu4:amd64(0.9.1-3)...
设置liblttng-ust-ctl2:amd64(2.7.1-1)...
设置liblttng-ust0:amd64(2.7.1-1)...
设置dotnet-host(1.1.0-preview1-001100-00-1)...
设置dotnet-hostfxr- 1.0.1(1.0.1-1)...
设置dotnet-sharedframework-microsoft.netcore.app-1.0.4(1.0.4-1)...
设置dotnet- hostfxr-1.1.0(1.1.0-1)...
设置dotnet-sharedframework-microsoft.netcore.app-1.1.1(1.1.1-1)...
设置dotnet-dev-1.0.1(1.0.1-1)...
libc-bin的处理触发器(2.23-0ubuntu7)...
jamie @ tesla〜/下载$ dotn et

Microsoft .NET Core共享框架主机

版本:1.1.0
内部版本:928f77c4bc3f49d892459992fb6e1d5542cb5e86

用法:dotnet [common-选项] [[选项]到应用程序的路径]

常用选项:
--help显示.NET Core共享框架主机帮助。
--version显示.NET Core共享框架主机版本。

选项:
--fx-version< version>用于运行应用程序的已安装共享框架的版本。
--additionalprobingpath< path>包含要探测的探测策略和程序集的路径。

应用程序路径:
要执行的.NET Core托管应用程序,dll或exe文件的路径。

如果要调试共享框架主机,请在您的环境中将 COREHOST_TRACE设置为 1。

要开始为.NET Core开发应用程序,请从以下位置安装SDK:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409


I am trying to install .NET Core on Linux Mint 18.1, following the instructions from "Install for Ubuntu 14.04, 16.04, 16.10 & Linux Mint 17 (64 bit)". I'm getting errors due to dependencies:

I still can't install the missing dependency directly:

Is there anything I can do to make it work, or is Linux Mint 18.1 simply not supported?

解决方案

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893

sudo apt-get update

sudo apt-get install dotnet-dev-1.0.1

Working on 18.1

jamie@tesla ~/Downloads $ sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
jamie@tesla ~/Downloads $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
Executing: /tmp/tmp.x3h2WeSDru/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
417A0893
gpg: requesting key 417A0893 from hkp server keyserver.ubuntu.com
gpg: key 417A0893: public key "MS Open Tech <interop@microsoft.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
jamie@tesla ~/Downloads $ sudo apt-get update
Ign:1 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena InRelease
Hit:2 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena Release
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial InRelease [2,835 B]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 Packages [5,741 B]
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial InRelease                                                                                                                           
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]                                                                                                          
Get:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]                                                                                                        
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                                                                                                       
Fetched 315 kB in 15s (20.2 kB/s)                                                                                                                                                 
Reading package lists... Done
jamie@tesla ~/Downloads $ sudo apt-get install dotnet-dev-1.0.1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1 libcurl3
  liblldb-3.6 libllvm3.6v5 liblttng-ust-ctl2 liblttng-ust0 liburcu4
The following NEW packages will be installed
  dotnet-dev-1.0.1 dotnet-host dotnet-hostfxr-1.0.1 dotnet-hostfxr-1.1.0 dotnet-sharedframework-microsoft.netcore.app-1.0.4 dotnet-sharedframework-microsoft.netcore.app-1.1.1
  libcurl3 liblldb-3.6 libllvm3.6v5 liblttng-ust-ctl2 liblttng-ust0 liburcu4
0 to upgrade, 12 to newly install, 0 to remove and 0 not to upgrade.
Need to get 113 MB of archives.
After this operation, 342 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3 amd64 7.47.0-1ubuntu2.2 [186 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libllvm3.6v5 amd64 1:3.6.2-3ubuntu2 [8,075 kB]
Get:3 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-host amd64 1.1.0-preview1-001100-00-1 [33.7 kB]
Get:4 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.0.1 amd64 1.0.1-1 [123 kB]
Get:5 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.0.4 amd64 1.0.4-1 [22.6 MB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblldb-3.6 amd64 1:3.6.2-3ubuntu2 [7,303 kB]               
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liburcu4 amd64 0.9.1-3 [47.3 kB]                        
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liblttng-ust-ctl2 amd64 2.7.1-1 [72.2 kB]          
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe amd64 liblttng-ust0 amd64 2.7.1-1 [127 kB]                       
Get:10 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-hostfxr-1.1.0 amd64 1.1.0-1 [124 kB]
Get:11 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-sharedframework-microsoft.netcore.app-1.1.1 amd64 1.1.1-1 [22.9 MB]
Get:12 https://apt-mo.trafficmanager.net/repos/dotnet-release xenial/main amd64 dotnet-dev-1.0.1 amd64 1.0.1-1 [51.4 MB]                                                          
Fetched 113 MB in 13s (8,498 kB/s)                                                                                                                                                
Selecting previously unselected package libcurl3:amd64.
(Reading database ... 256441 files and directories currently installed.)
Preparing to unpack .../libcurl3_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking libcurl3:amd64 (7.47.0-1ubuntu2.2) ...
Selecting previously unselected package libllvm3.6v5:amd64.
Preparing to unpack .../libllvm3.6v5_1%3a3.6.2-3ubuntu2_amd64.deb ...
Unpacking libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ...
Selecting previously unselected package liblldb-3.6.
Preparing to unpack .../liblldb-3.6_1%3a3.6.2-3ubuntu2_amd64.deb ...
Unpacking liblldb-3.6 (1:3.6.2-3ubuntu2) ...
Selecting previously unselected package liburcu4:amd64.
Preparing to unpack .../liburcu4_0.9.1-3_amd64.deb ...
Unpacking liburcu4:amd64 (0.9.1-3) ...
Selecting previously unselected package liblttng-ust-ctl2:amd64.
Preparing to unpack .../liblttng-ust-ctl2_2.7.1-1_amd64.deb ...
Unpacking liblttng-ust-ctl2:amd64 (2.7.1-1) ...
Selecting previously unselected package liblttng-ust0:amd64.
Preparing to unpack .../liblttng-ust0_2.7.1-1_amd64.deb ...
Unpacking liblttng-ust0:amd64 (2.7.1-1) ...
Selecting previously unselected package dotnet-host.
Preparing to unpack .../dotnet-host_1.1.0-preview1-001100-00-1_amd64.deb ...
Unpacking dotnet-host (1.1.0-preview1-001100-00-1) ...
Selecting previously unselected package dotnet-hostfxr-1.0.1.
Preparing to unpack .../dotnet-hostfxr-1.0.1_1.0.1-1_amd64.deb ...
Unpacking dotnet-hostfxr-1.0.1 (1.0.1-1) ...
Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.0.4.
Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.0.4_1.0.4-1_amd64.deb ...
Unpacking dotnet-sharedframework-microsoft.netcore.app-1.0.4 (1.0.4-1) ...
Selecting previously unselected package dotnet-hostfxr-1.1.0.
Preparing to unpack .../dotnet-hostfxr-1.1.0_1.1.0-1_amd64.deb ...
Unpacking dotnet-hostfxr-1.1.0 (1.1.0-1) ...
Selecting previously unselected package dotnet-sharedframework-microsoft.netcore.app-1.1.1.
Preparing to unpack .../dotnet-sharedframework-microsoft.netcore.app-1.1.1_1.1.1-1_amd64.deb ...
Unpacking dotnet-sharedframework-microsoft.netcore.app-1.1.1 (1.1.1-1) ...
Selecting previously unselected package dotnet-dev-1.0.1.
Preparing to unpack .../dotnet-dev-1.0.1_1.0.1-1_amd64.deb ...
Unpacking dotnet-dev-1.0.1 (1.0.1-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libcurl3:amd64 (7.47.0-1ubuntu2.2) ...
Setting up libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ...
Setting up liblldb-3.6 (1:3.6.2-3ubuntu2) ...
Setting up liburcu4:amd64 (0.9.1-3) ...
Setting up liblttng-ust-ctl2:amd64 (2.7.1-1) ...
Setting up liblttng-ust0:amd64 (2.7.1-1) ...
Setting up dotnet-host (1.1.0-preview1-001100-00-1) ...
Setting up dotnet-hostfxr-1.0.1 (1.0.1-1) ...
Setting up dotnet-sharedframework-microsoft.netcore.app-1.0.4 (1.0.4-1) ...
Setting up dotnet-hostfxr-1.1.0 (1.1.0-1) ...
Setting up dotnet-sharedframework-microsoft.netcore.app-1.1.1 (1.1.1-1) ...
Setting up dotnet-dev-1.0.1 (1.0.1-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
jamie@tesla ~/Downloads $ dotnet

Microsoft .NET Core Shared Framework Host

  Version  : 1.1.0
  Build    : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

Usage: dotnet [common-options] [[options] path-to-application]

Common Options:
  --help                           Display .NET Core Shared Framework Host help.
  --version                        Display .NET Core Shared Framework Host version.

Options:
  --fx-version <version>           Version of the installed Shared Framework to use to run the application.
  --additionalprobingpath <path>   Path containing probing policy and assemblies to probe for.

Path to Application:
  The path to a .NET Core managed application, dll or exe file to execute.

If you are debugging the Shared Framework Host, set 'COREHOST_TRACE' to '1' in your environment.

To get started on developing applications for .NET Core, install the SDK from:
  http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

这篇关于无法在Linux Mint 18.1上安装.NET Core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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