Skip to content

Commit bc9bcf6

Browse files
authored
Add ubuntu 19.10 (#16715)
1 parent eb4bef8 commit bc9bcf6

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

docs/core/install/includes/package-manager-switcher.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
> [!div class="op_single_selector"]
33
>
4+
> - [Ubuntu 19.10 - x64](../linux-package-manager-ubuntu-1910.md)
45
> - [Ubuntu 19.04 - x64](../linux-package-manager-ubuntu-1904.md)
56
> - [Ubuntu 18.04 - x64](../linux-package-manager-ubuntu-1804.md)
67
> - [Ubuntu 16.04 - x64](../linux-package-manager-ubuntu-1604.md)
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: Install .NET Core on Ubuntu 19.10 package manager - .NET Core
3+
description: Use a package manager to install .NET Core SDK and runtime on Ubuntu 19.10.
4+
author: thraka
5+
ms.author: adegeo
6+
ms.date: 01/16/2020
7+
---
8+
9+
# Ubuntu 19.10 Package Manager - Install .NET Core
10+
11+
[!INCLUDE [package-manager-switcher](./includes/package-manager-switcher.md)]
12+
13+
This article describes how to use a package manager to install .NET Core on Ubuntu 19.10. If you're installing the runtime, we suggest you install the [ASP.NET Core runtime](#install-the-aspnet-core-runtime), as it includes both .NET Core and ASP.NET Core runtimes.
14+
15+
## Register Microsoft key and feed
16+
17+
Before installing .NET, you'll need to:
18+
19+
- Register the Microsoft key.
20+
- Register the product repository.
21+
- Install required dependencies.
22+
23+
This only needs to be done once per machine.
24+
25+
Open a terminal and run the following commands.
26+
27+
```bash
28+
wget -q https://packages.microsoft.com/config/ubuntu/19.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
29+
sudo dpkg -i packages-microsoft-prod.deb
30+
```
31+
32+
## Install the .NET Core SDK
33+
34+
Update the products available for installation, then install the .NET Core SDK. In your terminal, run the following commands.
35+
36+
```bash
37+
sudo apt-get update
38+
sudo apt-get install apt-transport-https
39+
sudo apt-get update
40+
sudo apt-get install dotnet-sdk-3.1
41+
```
42+
43+
> [!IMPORTANT]
44+
> If you receive an error message similar to **Unable to locate package dotnet-sdk-3.1**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section.
45+
46+
## Install the ASP.NET Core runtime
47+
48+
Update the products available for installation, then install the ASP.NET Core runtime. In your terminal, run the following commands.
49+
50+
```bash
51+
sudo apt-get update
52+
sudo apt-get install apt-transport-https
53+
sudo apt-get update
54+
sudo apt-get install aspnetcore-runtime-3.1
55+
```
56+
57+
> [!IMPORTANT]
58+
> If you receive an error message similar to **Unable to locate package aspnetcore-runtime-3.1**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section.
59+
60+
## Install the .NET Core runtime
61+
62+
Update the products available for installation, then install the .NET Core runtime. In your terminal, run the following commands.
63+
64+
```bash
65+
sudo apt-get update
66+
sudo apt-get install apt-transport-https
67+
sudo apt-get update
68+
sudo apt-get install dotnet-runtime-3.1
69+
```
70+
71+
> [!IMPORTANT]
72+
> If you receive an error message similar to **Unable to locate package dotnet-runtime-3.1**, see the [Troubleshoot the package manager](#troubleshoot-the-package-manager) section.
73+
74+
## How to install other versions
75+
76+
[!INCLUDE [package-manager-switcher](./includes/package-manager-heading-hack-pkgname.md)]
77+
78+
## Troubleshoot the package manager
79+
80+
If you receive an error message similar to **Unable to locate package {the .NET Core package}**, run the following commands.
81+
82+
```bash
83+
sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
84+
sudo apt-get update
85+
sudo apt-get install {the .NET Core package}
86+
```
87+
88+
If that doesn't work, you can run a manual install with the following commands.
89+
90+
```bash
91+
sudo apt-get install -y gpg
92+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg
93+
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
94+
wget -q https://packages.microsoft.com/config/ubuntu/19.10/prod.list
95+
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
96+
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
97+
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
98+
sudo apt-get install -y apt-transport-https
99+
sudo apt-get update
100+
sudo apt-get install {the .NET Core package}
101+
```

docs/core/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
href: install/how-to-detect-installed-versions.md
1717
- name: Linux package managers
1818
items:
19+
- name: Ubuntu 19.10
20+
href: install/linux-package-manager-ubuntu-1910.md
1921
- name: Ubuntu 19.04
2022
href: install/linux-package-manager-ubuntu-1904.md
2123
- name: Ubuntu 18.04

0 commit comments

Comments
 (0)