title | description | author | ms.author | ms.date | ms.custom | zone_pivot_groups |
---|---|---|---|---|---|---|
Install .NET on Ubuntu |
Demonstrates the various ways to install .NET SDK and .NET Runtime on Ubuntu |
adegeo |
adegeo |
03/19/2024 |
linux-related-content |
ubuntu-install-set-one |
This article discusses how to install .NET on Ubuntu.
[!INCLUDE linux-intro-sdk-vs-runtime]
[!INCLUDE linux-install-package-manager-x64-vs-arm-ubuntu]
::: zone pivot="os-linux-ubuntu-2404"
[!INCLUDE linux-ubuntu-package-feed-both]
The following versions of .NET are supported or available for Ubuntu 24.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
8.0, 7.0, 6.0 | 8.0 | 7.0, 6.0 | None |
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-apt-install-80]
.NET 7 isn't available in the built-in Ubuntu 24.04 feed. Register the Ubuntu .NET backports package repository and use that feed to install .NET through APT.
[!INCLUDE linux-apt-install-70]
.NET 6 isn't available in the built-in Ubuntu 24.04 feed. Register the Ubuntu .NET backports package repository and use that feed to install .NET through APT.
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libicu74
- liblttng-ust1
- libssl3
- libstdc++6
- libunwind8
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-2310"
[!INCLUDE linux-ubuntu-package-feed-both]
The following versions of .NET are supported or available for Ubuntu 23.10:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
8.0, 7.0, 6.0 | 8.0, 7.0, 6.0 | None | 8.0, 7.0, 6.0 |
[!INCLUDE linux-ubuntu-feed-sdk-note]
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-apt-install-80]
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libgssapi-krb5-2
- libicu72
- liblttng-ust1
- libssl3
- libstdc++6
- libunwind8
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-2204"
[!INCLUDE linux-ubuntu-package-feed-both]
The following versions of .NET are supported or available for Ubuntu 22.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
8.0, 7.0, 6.0 | 8.0, 7.0, 6.0 | None | 8.0, 7.0, 6.0, 3.1 |
[!INCLUDE linux-ubuntu-feed-sdk-note]
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-apt-install-80]
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libgssapi-krb5-2
- libicu70
- liblttng-ust1
- libssl3
- libstdc++6
- libunwind8
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-2004"
[!INCLUDE linux-ubuntu-package-feed-ms]
The following versions of .NET are supported or available for Ubuntu 20.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
8.0, 7.0, 6.0 | None | None | 8.0, 7.0. 6.0, 5.0, 3.1, 2.1 |
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-prep-intro-apt]
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
[!INCLUDE linux-apt-install-80]
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libgssapi-krb5-2
- libicu66
- libssl1.1
- libstdc++6
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-1804"
[!INCLUDE linux-ubuntu-package-feed-ms]
The following versions of .NET are supported or available for Ubuntu 18.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
7.0, 6.0 | None | None | 7.0. 6.0, 5.0, 3.1, 2.2, 2.1 |
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-prep-intro-apt]
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
.NET 8 isn't supported on Ubuntu 18.04.
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc1
- libgssapi-krb5-2
- libicu60
- libssl1.1
- libstdc++6
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-1604"
[!INCLUDE linux-ubuntu-package-feed-ms]
The following versions of .NET are supported or available for Ubuntu 16.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
6.0 | None | None | 6.0, 5.0, 3.1, 3.0, 2.2, 2.1, 2.0 |
When an Ubuntu version falls out of support, .NET is no longer supported with that version.
[!INCLUDE linux-prep-intro-apt]
wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
.NET 8 isn't supported on Ubuntu 16.04.
.NET 7 isn't supported on Ubuntu 16.04.
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc1
- libgssapi-krb5-2
- libicu55
- libssl1.0.0
- libstdc++6
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
::: zone-end
::: zone pivot="os-linux-ubuntu-2310,os-linux-ubuntu-2204,os-linux-ubuntu-2004,os-linux-ubuntu-1804,os-linux-ubuntu-1604"
[!INCLUDE versions-not-supported]
.NET package names are standardized across all Linux distributions. The following table lists the packages:
[!INCLUDE package-manager-switcher]
::: zone-end
::: zone pivot="os-linux-ubuntu-other"
If your Ubuntu version isn't supported, you most likely need to install .NET by manually extracting the binaries, by using the install script. For more information, see Install .NET on Linux without using a package manager.
Warning
This version of Ubuntu is no longer supported.
Running .NET on this version of Ubuntu is no longer supported.
[!INCLUDE linux-ubuntu-package-feed-both]
The following versions of .NET are supported or available for Ubuntu 23.04:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
8.0, 7.0, 6.0 | 7.0, 6.0 | None | 8.0, 7.0, 6.0 |
[!INCLUDE linux-ubuntu-feed-sdk-note]
[!INCLUDE linux-ubuntu-80-ms]
[!INCLUDE linux-apt-install-80]
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libgssapi-krb5-2
- libicu72
- liblttng-ust1
- libssl3
- libstdc++6
- libunwind8
- zlib1g
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.
Warning
This version of Ubuntu is no longer supported.
Running .NET on this version of Ubuntu is no longer supported.
[!INCLUDE linux-ubuntu-package-feed-both]
The following versions of .NET are supported or available for Ubuntu 22.10:
Supported .NET versions | Available in built-in Ubuntu feed |
Available in .NET backports Ubuntu feed |
Available in Microsoft feed |
---|---|---|---|
7.0, 6.0 | 7.0, 6.0 | None | 7.0, 6.0, 3.1 |
[!INCLUDE linux-ubuntu-feed-sdk-note]
.NET 8 isn't supported on Ubuntu 22.10.
[!INCLUDE linux-apt-install-70]
[!INCLUDE linux-apt-install-60]
When you install with a package manager, these libraries are installed for you. But, if you manually install .NET or you publish a self-contained app, you'll need to make sure these libraries are installed:
- ca-certificates
- libc6
- libgcc-s1
- libgssapi-krb5-2
- libicu71
- liblttng-ust1
- libssl3
- libstdc++6
- libunwind8
- zlib1g
::: zone-end
[!INCLUDE linux-ubuntu-deps-example]
[!INCLUDE linux-libgdiplus-general]
You can install a recent version of libgdiplus by adding the Mono repository to your system.