1

The current installation instructions for Ubuntu 14 require the use of sudo (https://www.microsoft.com/net/core#ubuntu). I don't have root permissions on a particular Ubuntu 12 server that I need to install .Net Core on. I have tried to download the Ubuntu files (https://www.microsoft.com/net/download#core) and install them manually but I get the following error when I run 'dotnet restore':

Failed to initialize CoreCLR, HRESULT: 0x8007001F

3 Answers 3

4

Running dotnet from the tar.gz works just fine for me on Ubuntu 14.

Running from the tar.gz or building from source does not work for me on Ubuntu 12. But Ubuntu 12 is not supported by dotnet, so I'm not surprised it does not work.

Not using sudo is not an issue, having old OS is.

Sign up to request clarification or add additional context in comments.

2 Comments

I get a similar error message, just different error code, when I run dotnet on Ubuntu 15. I've accepted this as the answer since you are right to say that Ubuntu 12 isn't supported, even though there's no documentation that I have found that states this explicitly.
@AshleyS The page you linked to explicitly says it's for Ubuntu 14.04. Even Ubuntu 15 currently isn't supported.
0

According to this:

https://github.com/dotnet/cli/issues/2971

it's a permissions issue and the fix:

As soon as I do chmod +X to my binary (here it's tata) it works.

1 Comment

I forgot to mention that I already tried that solution. It doesn't fix the error for me.
0

According to https://learn.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x you can use "The dotnet-install scripts are used to perform a non-admin install of the CLI toolchain". Although as mentioned results may vary depending on the linux os and version. I might recommend running a vm to test compatibilities with different versions if having issues. File permissions are also important.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.