Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Ubuntu v6.0.111 .NET location: Not found for tools #29499

Closed
1 task done
liukonen opened this issue Dec 11, 2022 · 4 comments
Closed
1 task done

Runtime Ubuntu v6.0.111 .NET location: Not found for tools #29499

liukonen opened this issue Dec 11, 2022 · 4 comments
Assignees
Labels
Area-Linux untriaged Request triage from a team member

Comments

@liukonen
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

dotnet Tools no longer working with the most recent update to runtime (worked a few days ago and stopped... issue appears to be tools can't find the framework, even though the framework exists)
Platform Ubuntu 22.04.1 LTS x86_64
Multiple tools having issues (dotnet-updater seqcli)

CLI output
❯ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
❯ ./dotnet-outdated
You must install .NET to run this application.

App: /home/luke/.dotnet/tools/dotnet-outdated
Architecture: x64
App host version: 6.0.11
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=6.0.11

Expected Behavior

tools to execute

Steps To Reproduce

❯ dotnet tools install -g dotnet-outdated-tool
❯ dotnet-outdated

Exceptions (if any)

You must install .NET to run this application.

App: /home/luke/.dotnet/tools/dotnet-outdated
Architecture: x64
App host version: 6.0.11
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=6.0.11

.NET Version

6.0.111

Anything else?

Applications that I've written on my own work fine when executing dotnet {project}
dotnet tools don't appear to want to execute with the dotnet in front of it and will show the above error when running them individually.

@javiercn javiercn transferred this issue from dotnet/aspnetcore Dec 12, 2022
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Linux untriaged Request triage from a team member labels Dec 12, 2022
@vitek-karas
Copy link
Member

This is probably the same problem as this one: dotnet/runtime#79237
There are some workarounds and future fixes described in that issue.

@liukonen
Copy link
Author

Thank you so much! setting DOTNET_ROOT=/usr/lib/dotnet seams to have corrected the issue on my local machine

@KennethHoff
Copy link

KennethHoff commented Nov 18, 2023

Using the dotnet-install script adds it to $HOME/.dotnet/ by default. In that case you'll need to do the following instead:

DOTNET_ROOT=$HOME/.dotnet/

@vitek-karas
Copy link
Member

Closing as the Ubuntu packages are now updated and should not cause this failure anymore. @KennethHoff coment is correct is you use the install script instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Linux untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants