Install Mac App On Ubuntu

  1. These instructions assume some familiarity with the OSX command line (Terminal app) and basic Unix-like concepts. To learn more about Linux and Unix in general, you should install Ubuntu. Installing Ubuntu Touch onto a supported mobile device is fairly easy, especially if you have already configured your machine for Android app development.
  2. But if having an omnipresent set of app menus stripped across the top of the screen is part of the Mac experience you don’t wish to lose, stick with Unity. Install a Mac GTK Theme. The single easiest way to make Ubuntu look like a Mac is to install a Mac GTK theme. Our top recommendation is the ‘macOS Mojave’ theme by Vinceluice.
  3. The progress of the installation displays above the “Install” button. When the installation is finished, the “Install” button becomes the “Remove” button allowing you to uninstall the application, should you need to. To close the Ubuntu Software Center, click the “X” button in the upper-left corner of the window.

You might already have vsftpd installed. To check, open a terminal window and input.

-->

.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. However, these instructions may help you to get .NET running on those versions, even though it isn't supported.

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.

Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must manually install the .NET Core SDK or .NET Core Runtime. For more information, see the manually install section.

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

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.

20.10 ✔️

.NET 5 and .NET Core 3.1 package feeds for Ubuntu 20.10 currently have an issue. For more information about the issue, see GitHub issue dotnet/core#5549. This article will be updated when the issue is resolved.

To install .NET 5 or .NET Core 3.1 on Ubuntu 20.10, follow the instructions for 20.04.

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. How do i uninstall apps on mac os.

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

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.

Install

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.

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. Mac app to combine photos.

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: Download manager open source mac.

APT update SDK or runtime

When a new patch release is available for .NET, you can simply upgrade it through APT with the following commands:

APT troubleshooting

This section provides information on common errors you may get while using APT to install .NET.

Unable to find package

Package manager installs are only supported on the x64 architecture. Other architectures, such as ARM, must manually install the .NET Core SDK or .NET Core Runtime. For more information, see the manually install section.

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 as aspnetcore-runtime-3.1. This is used in the following sudo apt-get install command.

  • {os-version}
    This represents the Linux version you are on. This is used in the wget 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.

Snap

A snap is a bundle of an app and its dependencies that works without modification across many different Linux distributions. Snaps are discoverable and installable from the Snap Store. For more information about Snap, see Getting started with Snap.

Only supported versions of .NET Core are available through Snap.

How To Install Ubuntu On Mac

Install the SDK

Snap packages for .NET SDK are all published under the same identifier: dotnet-sdk. A specific version of the SDK can be installed by specifying the channel. The SDK includes the coresponding runtime. The following table list the channels:

.NET versionSnap package
5.05.0 or latest/stable
3.1 (LTS)3.1 or lts/stable
2.1 (LTS)2.1

Use the snap install command to install a .NET SDK snap package. Use the --channel parameter to indicate which version to install. If this parameter is omitted, latest/stable is used. In this example, 5.0 is specified:

Next, register the dotnet command for the system with the snap alias command:

This command is formatted as: sudo snap alias {package}.{command} {alias}. You can choose any {alias} name you would like. For example, you could name the command after the specific version installed by snap: sudo snap alias dotnet-sdk.dotnet dotnet50. When you use the command dotnet50, you'll invoke this specific version of .NET. But this is incompatible with most tutorials and examples as they expect a dotnet command to be available.

Install the runtime

Snap packages for .NET Core Runtime are each published under their own package identifier. The following table lists the package identifiers:

.NET versionSnap package
5.0dotnet-runtime-50
3.1 (LTS)dotnet-runtime-31
3.0dotnet-runtime-30
2.2dotnet-runtime-22
2.1 (LTS)dotnet-runtime-21

Use the snap install command to install a .NET Runtime snap package. In this example, .NET 5.0 is installed:

Next, register the dotnet command for the system with the snap alias command:

This command is formatted as: sudo snap alias {package}.{command} {alias}. You can choose any {alias} name you would like. For example, you could name the command after the specific version installed by snap: sudo snap alias dotnet-runtime-50.dotnet dotnet50. When you use the command dotnet50, you'll invoke this specific version of .NET. But this is incompatible with most tutorials and examples as they expect a dotnet command to be available.

SSL Certificate errors

When .NET is installed through Snap, it's possible that on some distros the .NET SSL certificates may not be found and you may receive an error similar to the following during restore:

To resolve this issue, set a few enviornment variables:

The certificate location will vary by distro. Here are the locations for the distros where we have experienced the issue.

  • Fedora - /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
  • OpenSUSE - /etc/ssl/ca-bundle.pem
  • Solus - /etc/ssl/certs/ca-certificates.crt

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/.

Scripted install

The dotnet-install scripts are used for automation and non-admin installs of the SDK and Runtime. You can download the script from https://dot.net/v1/dotnet-install.sh.

The script defaults to installing the latest SDK long term support (LTS) version, which is .NET 5.0. To install the current release, which may not be an (LTS) version, use the -c Current parameter.

To install .NET Runtime instead of the SDK, use the --runtime parameter.

You can install a specific version by altering the -c parameter to indicate the specific version. The following command installs .NET SDK 5.0.

For more information, see dotnet-install scripts reference.

Manual install

As an alternative to the package managers, you can download and manually install the SDK and runtime. Manual install is usually performed as part of continuous integration testing or on an unsupported Linux distribution. For a developer or user, it's generally better to use a package manager.

If you install .NET SDK, you don't need to install the corresponding runtime. First, download a binary release for either the SDK or the runtime from one of the following sites:

  • ✔️ .NET 5.0 downloads
  • ✔️ .NET Core 3.1 downloads
  • ✔️ .NET Core 2.1 downloads

Next, extract the downloaded file and use the export command to set variables used by .NET and then ensure .NET is in PATH.

To extract the runtime and make the .NET CLI commands available at the terminal, first download a .NET binary release. Then, open a terminal and run the following commands from the directory where the file was saved. The archive file name may be different depending on what you downloaded.

Use the following command to extract the runtime:

Use the following command to extract the SDK:

Tip

The preceding export commands only make the .NET CLI commands available for the terminal session in which it was run.

You can edit your shell profile to permanently add the commands. There are a number of different shells available for Linux and each has a different profile. For example:

  • Bash Shell: ~/.bash_profile, ~/.bashrc
  • Korn Shell: ~/.kshrc or .profile
  • Z Shell: ~/.zshrc or .zprofile

Edit the appropriate source file for your shell and add :$HOME/dotnet to the end of the existing PATH statement. If no PATH statement is included, add a new line with export PATH=$PATH:$HOME/dotnet.

Also, add export DOTNET_ROOT=$HOME/dotnet to the end of the file.

This approach lets you install different versions into separate locations and choose explicitly which one to use by which application.

Next steps

Before you can follow any of the Ionic tutorials on this website, you need to install Ionic onto you machine. Below are instructions that can help you through the process of installing Ionic on which ever platform you are running. If you experience any problems with the instructions below, kindly leave a comment and I’ll do my best to help you out. If you have Ionic installed (Ionic4), move right along to the first tutorial of building a Social Task Manager.

Installing NPM

Mac

NPM is a package management for Node.JS. You can find a lot of free packages on http://www.npmjs.com to use on your Node.JS applications. NPM can also be used to install global command line utilities, and one of them happens to be Ionic. Before installing Ionic, you need to make sure you have NPM installed on your system. Below are instructions for installing NPM for Mac, Linux & Windows. If you have NPM installed, then you can move right along to installing Ionic.

Although you can download Node.JS and NPM from https://nodejs.org, I don’t recommend it. Biggest reason being you’ll be required to run your NPM commands with a sudo to get administrator rights. This can cause havoc if something goes wrong while running a Node.JS package. Easiest way to avoid the issues above is to install Homebrew. Copy and run the line below on your Mac’s terminal

Now that brew is installed, it’s time to install NPM. On your terminal app, run this

That’s it, NPM is installed. To see if it’s installed, type the line below on Terminal. You should see the version number print. node -v

Ubuntu

Install Mac App On Ubuntu

Before installing NPM, on Linux you need to have Ruby 1.8.6 or newer and GCC 4.2 or newer installed. We also need to have Homebrew installed as we will install NPM from Homebrew. Homebrew used to be only on Mac, but now it is also on Linux. I chose Homebrew to install NPM because it makes everything a lot easier and doesn’t require “sudo” to run NPM commands.
Copy and run the following in your terminal

Install Mac On Ubuntu

Next we need to install homebrew

Once Linuxbrew is installed, run brew update in your terminal to update to get the latest packages and then copy the following 3 lines into your .bashrc file:

Lastly run the command below to install NPM

Install Ubuntu On Old Mac

To make sure everything worked out well, run npm -v in the terminal and you should see the version number printed.

Windows

This is the easiest to install out of all 3 platforms.

  1. First download the installer from https://nodejs.org and then run it.
  2. Follow the installation instructions
  3. Restart your computer
  4. Run “npm -v” on your command line to test if NPM is working, if it’s working then it will print out the version number

Installing Ionic

Installing Ubuntu On Mac Pro

Now that we have NPM installed, we are able to install the Ionic CLI. The Ionic CLI (Client Line Interface) is the tool we’ll be using to start new Ionic projects, create pages, compiling our apps and many more features. It’s basically our lifeline in our Ionic journey. The CLI is one of the packages you find on NPM, so to install it type:

The command above will install Ionic 4 & Cordova. Cordova is what wraps our Ionic HTML5, CSS & JavaScript code into a native app. It also gives us access to the phone’s native features like the camera, location and many more. Test if Ionic is installed by typing ionic -v and it should print out the Ionic version.

Create your first app

Install Mac App On Ubuntu Computer

Run the command below to create your first Ionic4 app.

This command tells ionic to create an app named “HelloWorld” using the “tabs” layout as the starting layout (you can choose among blank, tabs and slidemenu). The command above also tells ionic to use angular as our framework of choice. Once that’s done run the following command:

If all goes well, a new browser window will be opened with your app running. Congratulations, you have just created your first Ionic4 app. Let’s now build an interactive Lotto Number Generator in the next tutorial.