Every Ubuntu release gets a code name. Ubuntu 18.08 was Bionic Beaver and 18.10 dubbed Cosmic Cuttlefish. Ubuntu 19.04 gets a rather special name, one that everyone should adore. The heart of the Linux desktop beats on with the latest release of Canonical 's Ubuntu distribution: Ubuntu 19.04. But, in addition, the server version comes ready with the latest cloud.
-->.NET is supported on Ubuntu. This article describes how to install .NET on Ubuntu. When an Ubuntu version falls out of support, .NET is no longer supported with that version.
Install the SDK (which includes the runtime) if you want to develop .NET apps. Or, if you only need to run apps, install the Runtime. If you're installing the Runtime, we suggest you install the ASP.NET Core Runtime as it includes both .NET and ASP.NET Core runtimes.
If you've already installed the SDK or Runtime, use the dotnet --list-sdks
and dotnet --list-runtimes
commands to see which versions are installed. For more information, see How to check that .NET is already installed.
Important
Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must install .NET by some other means such as with Snap, an installer script, or through a manual binary installation.
For more information on installing .NET without a package manager, see one of the following articles:
Supported distributions
The following table is a list of currently supported .NET releases and the versions of Ubuntu they're supported on. These versions remain supported until either the version of .NET reaches end-of-support or the version of Ubuntu reaches end-of-life.
- A ✔️ indicates that the version of Ubuntu or .NET is still supported.
- A ❌ indicates that the version of Ubuntu or .NET isn't supported on that Ubuntu release.
- When both a version of Ubuntu and a version of .NET have ✔️, that OS and .NET combination is supported.
Ubuntu | .NET Core 2.1 | .NET Core 3.1 | .NET 5.0 |
---|---|---|---|
✔️ 20.10 | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
✔️ 20.04 (LTS) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
❌ 19.10 | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
❌ 19.04 | ✔️ 2.1 | ✔️ 3.1 | ❌ 5.0 |
❌ 18.10 | ✔️ 2.1 | ❌ 3.1 | ❌ 5.0 |
✔️ 18.04 (LTS) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
❌ 17.10 | ✔️ 2.1 | ❌ 3.1 | ❌ 5.0 |
❌ 17.04 | ✔️ 2.1 | ❌ 3.1 | ❌ 5.0 |
❌ 16.10 | ❌ 2.1 | ❌ 3.1 | ❌ 5.0 |
✔️ 16.04 (LTS) | ✔️ 2.1 | ✔️ 3.1 | ✔️ 5.0 |
The following versions of .NET are no longer supported. The downloads for these still remain published:
- 3.0
- 2.2
- 2.0
Remove preview versions
When using a package manager to manage your installation of .NET, you may run into a conflict if you've previously installed a preview release. The package manager may interpret the non-preview release as an earlier version of .NET. To install the non-preview release, first uninstall the preview versions. For more information about uninstalling .NET, see How to remove the .NET Runtime and SDK.
20.10 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
20.04 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
19.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-3.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-3.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-3.1
in the previous command with dotnet-runtime-3.1
.
19.04 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-3.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-3.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-3.1
in the previous command with dotnet-runtime-3.1
.
18.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important Netscape customer service.
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
18.04 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
17.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
Ubuntu 19.04 Server Download
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
17.04 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
16.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
The following versions of .NET are no longer supported. The downloads for these still remain published:
- 3.0
- 2.2
- 2.0
Remove preview versions
When using a package manager to manage your installation of .NET, you may run into a conflict if you've previously installed a preview release. The package manager may interpret the non-preview release as an earlier version of .NET. To install the non-preview release, first uninstall the preview versions. For more information about uninstalling .NET, see How to remove the .NET Runtime and SDK.
20.10 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
20.04 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
19.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-3.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-3.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-3.1
in the previous command with dotnet-runtime-3.1
.
19.04 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-3.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-3.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-3.1
in the previous command with dotnet-runtime-3.1
.
18.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important Netscape customer service.
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
18.04 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
17.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
Ubuntu 19.04 Server Download
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
17.04 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
16.10 ❌
❌ Please note that this version of Ubuntu is no longer supported.
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET Core SDK allows you to develop apps with .NET Core. If you install the .NET Core SDK, you don't need to install the corresponding runtime. To install the .NET Core SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-2.1, see the APT troubleshooting section.
Install the runtime
The .NET Core Runtime allows you to run apps that were made with .NET Core that didn't include the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET Core. In your terminal, run the following commands.
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-2.1, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Core Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-2.1
in the previous command with dotnet-runtime-2.1
.
16.04 ✔️
Installing with APT can be done with a few commands. Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
Important
If you receive an error message similar to Unable to locate package dotnet-sdk-5.0, see the APT troubleshooting section.
Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
Important
If you receive an error message similar to Unable to locate package aspnetcore-runtime-5.0, see the APT troubleshooting section.
As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-5.0
in the previous command with dotnet-runtime-5.0
:
How to install other versions
The packages added to package manager feeds are named in a hackable format: {product}-{type}-{version}
.
product
The type of .NET product to install. Valid options are:- dotnet
- aspnetcore
type
Chooses the SDK or the runtime. Valid options are:- sdk
- runtime
version
The version of the SDK or runtime to install. This article will always give the instructions for the latest supported version. Valid options are any released version, such as:- 5.0
- 3.1
- 3.0
- 2.1
It's possible the SDK/runtime you're trying to download is not available for your Linux distribution. For a list of supported distributions, see .NET Core dependencies and requirements.
Examples
- Install the ASP.NET Core 5.0 runtime:
aspnetcore-runtime-5.0
- Install the .NET Core 2.1 runtime:
dotnet-runtime-2.1
- Install the .NET 5.0 SDK:
dotnet-sdk-5.0
- Install the .NET Core 3.1 SDK:
dotnet-sdk-3.1
Package missing
If the package-version combination doesn't work, it's not available. For example, there isn't an ASP.NET Core SDK, the SDK components are included with the .NET SDK. The value aspnetcore-sdk-2.2
is incorrect and should be dotnet-sdk-2.2
. For a list of Linux distributions supported by .NET Core, see .NET dependencies and requirements.
Use APT to update .NET
When a new patch release is available for .NET, you can simply upgrade it through APT with the following commands: Macos create disk image.
APT troubleshooting
This section provides information on common errors you may get while using APT to install .NET.
Unable to find package
Important
Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must install .NET by some other means such as with Snap, an installer script, or through a manual binary installation.
For more information on installing .NET without a package manager, see one of the following articles:
Unable to locate Some packages could not be installed
If you receive an error message similar to Unable to locate package {dotnet-package} or Some packages could not be installed, run the following commands.
There are two placeholders in the following set of commands.
{dotnet-package}
This represents the .NET package you're installing, such asaspnetcore-runtime-3.1
. This is used in the followingsudo apt-get install
command.{os-version}
This represents the Linux version you are on. This is used in thewget
command below.
First, try purging the package list:
Then, try to install .NET again. If that doesn't work, you can run a manual install with the following commands:
Failed to fetch
While installing the .NET package, you may see an error similar to Failed to fetch .. File has unexpected size .. Mirror sync in progress?
. This error could mean that the package feed for .NET is being upgraded with newer package versions, and that you should try again later. During an upgrade, the package feed shouldn't be unavailable for more than 30 minutes. If you continually receive this error for more than 30 minutes, please file an issue at https://github.com/dotnet/core/issues.
Dependencies
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:
- libc6
- libgcc1
- libgssapi-krb5-2
- libicu52 (for 14.x)
- libicu55 (for 16.x)
- libicu60 (for 18.x)
- libicu66 (for 20.x)
- libssl1.0.0 (for 14.x, 16.x)
- libssl1.1 (for 18.x, 20.x)
- libstdc++6
- zlib1g
For .NET apps that use the System.Drawing.Common assembly, you also need the following dependency:
libgdiplus (version 6.0.1 or later)
Warning
You can install a recent version of libgdiplus by adding the Mono repository to your system. For more information, see https://www.mono-project.com/download/stable/.
Next steps
Canonical announced the release of the open-source Ubuntu 19.04 Linux distribution on April 18, with new versions for cloud, server and desktop users.
The Ubuntu 19.04 update is code-named the 'Disco Dingo' and is a standard release, which means Canonical will support it for nine months. The 19.04 update is largely an evolutionary step forward, extending features that Ubuntu has been building on for the last several releases. Among the most noteworthy aspects of Ubuntu 19.04's evolutionary path is the use of 'snaps,' an approach for packaging, delivering and updating software in a highly agile manner.
Ubuntu 19.04 Server
In a video interview with eWEEK, Ubuntu and Canonical founder Mark Shuttleworth outlines the growing importance of snaps in the Ubuntu 19.04 update.
Further reading
Ubuntu 19.04 is the first major milestone update for Ubuntu in 2019 and follows the 18.10 'Cosmic Cuttlefish' update that was released in October 2018.
Snaps
According to Canonical, more than 2,000 software publishers now distribute applications as snaps, which is a 30% increase over October 2018.
'For me, what's really exciting about snaps is they are essentially a binary interface to GitHub,' Shuttleworth said.
GitHub is a widely used site where developers build and publish source code, often at a rapid pace. Shuttleworth said that snaps provide a way to deliver source code that is built on GitHub to users in a binary, executable form, at a speed that can keep up with what GitHub produces.
Another key innovation that snaps provide is the ability for a full Linux distribution, like Ubuntu 19.04, to rapidly iterate and update certain software dependencies. In the non-snaps model, it's often very difficult to update certain software libraries after a release has shipped, according to Shuttleworth. With a snap, a software developer can simultaneously publish multiple versions that can be made available for different versions of Ubuntu and even other Linux distributions. Shuttleworth explained that snaps also make it easier for users to choose which version or release train of a given software application that they want to use.
'With each version of Ubuntu, we are making it easier to build and publish snaps, and they are more deeply integrated into the system, so that more core functionality of the platform can be expressed as a snap,' Shuttleworth said.
GNOME 3.32
On the desktop, the Ubuntu 19.04 release uses the GNOME 3.32 desktop environment, which provides smoother animation capabilities, higher frame rates and faster icon load times, among other enhancements.
Ubuntu 19.04 is the third milestone release to use GNOME after the Linux distribution shifted away from its own Unity desktop. Ubuntu 18.04—which was code-named the 'Bionic Beaver' and is a Long Term Support (LTS) release, meaning it will be supported for five years—was the first to get the GNOME desktop in April 2018. With 19.04, some elements of the Unity workflow are making their way back into how Ubuntu implement GNOME.
'Our community is used to Unity, so they like that workflow, I wouldn't describe it as more elegant than vanilla GNOME, but there is a lot of demand for that set of experiences,' Shuttleworth said. '19.04 does reintroduce some of those ways of working for people who like it that way.'
Watch the full video interview with Shuttleworth above.
Sean Michael Kerner is a senior editor at eWEEK and InternetNews.com. Follow him on Twitter @TechJournalist.
Most Recent Videos
Ubuntu 19.04 Mirror
- Ask the Experts: Data Analytics Trends for 2020
Posted
- Expert View on Virtual Machines: Use Cases and Future..
Posted
- How BlackBerry Has Become a Cyber-Security Player
Posted
- Why McAfee Is Integrating AI Into Next Gen Security
Posted