"The application 'run' does not exist" after updating to 6.0.8 on Ubuntu 22.04
See original GitHub issueDescribe the bug
Running dotnet run
(or new
or --version
) outputs:
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application 'run' does not exist.
* You intended to execute a .NET SDK command:
No .NET SDKs were found.
Download a .NET SDK:
https://aka.ms/dotnet-download
Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
To Reproduce
Yesterday at the end of the day it was all fine.
This morning, I opened my laptop run apt update
and apt upgrade
. Version 6.0.8 was installed (and VS Code 1.70.1) and after that I could not run SDK commands anymore.
dotnet --list-sdks
returns nothing.
dotnet --info
mentions global.json file: Not found
Error
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application 'run' does not exist.
* You intended to execute a .NET SDK command:
No .NET SDKs were found.
Download a .NET SDK:
https://aka.ms/dotnet-download
Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Further technical details
- Include the output of
dotnet --info
global.json file:
Not found
Host:
Version: 6.0.8
Architecture: x64
Commit: 55fb7ef977
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
- VS Code 1.70.1 but I mostly use the CLI to interact with .NET
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
dotnet run not finding the installed runtime in Ubuntu 22.04
I'm trying to run dotnet 6 program, but it is complaining that the framework is missing. The sdk is installed as you see:...
Read more >Why don't any of these methods work for installing .Net ...
I make it run with the APT package solution, in fact there is a conflict between Ubuntu ... sudo apt update sudo apt...
Read more >Install .NET SDK or .NET Runtime on Ubuntu 22.04
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...
Read more >How to Install .NET Core (dotnet) on Ubuntu 22.04
NET Core runtime only. This tutorial walks through installing the . NET core on Ubuntu 22.04 LTS Linux system. You can install ....
Read more >Fixing my .NET 6 SDK installation after ... - Alexander Zeitler
I'm running on Xubuntu 22.04 day in day out working with .NET most of the time, so downtime is not an option. .NET...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please see if https://github.com/dotnet/core/issues/7699 describes your situation and how to resolve it.
The instructions in https://github.com/dotnet/core/issues/7699 solved it for me as well.