core icon indicating copy to clipboard operation
core copied to clipboard

Installation is fine; cannot run file.

Open Dylanthemachine opened this issue 3 years ago • 5 comments

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/run Operating System: linux/Ubuntu

When I run the "hello world" dotnet file, nothing happens. I don't get an error warning. Just nothing happens. I also need to run as a superuser. Might be related; might not,

dotnetfailure

Dylanthemachine avatar Jul 25 '22 18:07 Dylanthemachine

Did you install via snap? We do see a lot of issues with that, if that's the case.

mairaw avatar Jul 25 '22 22:07 mairaw

I don't think so. I installed this a few weeks ago when I was on boarding and didn't check . I use apt.

On Mon, Jul 25, 2022, 3:11 PM Maira Wenzel @.***> wrote:

Did you install via snap? We do see a lot of issues with that, if that's the case.

— Reply to this email directly, view it on GitHub https://github.com/dotnet/core/issues/7634#issuecomment-1194694817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQGR5P3ETM2RSO33XUTI74LVV4GJZANCNFSM54TFB25Q . You are receiving this because you authored the thread.Message ID: @.***>

Dylanthemachine avatar Jul 25 '22 22:07 Dylanthemachine

seems like a duplicate of #7627

mairaw avatar Jul 25 '22 23:07 mairaw

I doubt it; I just reinstalled dotnet according to that ticket and still am getting the same issue

Dylanthemachine avatar Jul 25 '22 23:07 Dylanthemachine

On Linux distribution like ubuntu: Install the .NET Core SDK with snapcraft (snap package manager) as demonstrated following steps bellow:

A. Installing it for the first time on your machine / on a new machine:

  1. sudo snap install dotnet-sdk --classic
  2. sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet

B. Not for the first time / installed previous version before:

  1. sudo snap install dotnet-sdk --classic
  2. sudo rm /usr/local/bin/dotnet
  3. sudo ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet

ceksudo avatar Jul 29 '22 05:07 ceksudo

Closing based on this comment from @leecow last year: https://github.com/dotnet/core/issues/7627#issuecomment-1585176247

But please let us know if you still can't install it via the instructions on https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

mairaw avatar Feb 22 '24 02:02 mairaw