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

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

Closed
stoyandimov opened this issue Aug 11, 2022 · 7 comments
Labels
Area-CLI untriaged Request triage from a team member

Comments

@stoyandimov
Copy link

stoyandimov commented Aug 11, 2022

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
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Aug 11, 2022
@stoyandimov stoyandimov changed the title The application 'run' does not exist "The application 'run' does not exist" after installing 6.0.8 on ubuntu 22.04 Aug 11, 2022
@stoyandimov stoyandimov changed the title "The application 'run' does not exist" after installing 6.0.8 on ubuntu 22.04 "The application 'run' does not exist" after updating to 6.0.8 on Ubuntu 22.04 Aug 11, 2022
@longday
Copy link

longday commented Aug 11, 2022

same issue

~ ᐅ 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
~ ᐅ sudo apt show dotnet-sdk-6.0
Package: dotnet-sdk-6.0
Version: 6.0.400-1
Priority: standard
Section: devel
Maintainer: Microsoft <dotnetcore@microsoft.com>
Installed-Size: 344 MB
Depends: dotnet-targeting-pack-6.0 (>= 6.0.8), netstandard-targeting-pack-2.1 (>= 2.1.0), aspnetcore-runtime-6.0 (>= 6.0.8), dotnet-apphost-pack-6.0 (>= 6.0.8), dotnet-runtime-6.0 (>= 6.0.8), aspnetcore-targeting-pack-6.0 (>= 6.0.8)
Homepage: https://github.com/dotnet/core
Download-Size: 86,4 MB
APT-Manual-Installed: yes
APT-Sources: https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages
Description: Microsoft .NET SDK 6.0.400

@Josephfilbert
Copy link

Same issue, Suddenly Jetbrains Rider cannot detect MSBuild after installing the same update in my Linux Mint 21.
The package version is 6.0.8-0ubuntu1~22.04.1. It's weird the version has ubuntu suffix in it.

@shainegordon
Copy link

definately a problem....

@baronfel
Copy link
Member

Please see if dotnet/core#7699 describes your situation and how to resolve it.

@shainegordon
Copy link

shainegordon commented Aug 11, 2022

Please see if dotnet/core#7699 describes your situation and how to resolve it.

That worked.
TBH, not sure what changed, just followed the thread top to bottom, but haven't compared to the official instructions

@longday
Copy link

longday commented Aug 11, 2022

That worked too. #27082 (comment) (Kubuntu 22.04)

@stoyandimov
Copy link
Author

The instructions in dotnet/core#7699 solved it for me as well.

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

No branches or pull requests

5 participants