question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"The application 'run' does not exist" after updating to 6.0.8 on Ubuntu 22.04

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
baronfelcommented, Aug 11, 2022

Please see if https://github.com/dotnet/core/issues/7699 describes your situation and how to resolve it.

0reactions
stoyandimovcommented, Aug 11, 2022

The instructions in https://github.com/dotnet/core/issues/7699 solved it for me as well.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found