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

.Net core SDK not found #7661

Closed
mattgen88 opened this issue Aug 4, 2022 · 7 comments
Closed

.Net core SDK not found #7661

mattgen88 opened this issue Aug 4, 2022 · 7 comments
Labels
needs-more-info Not enough information has been provided. Please share more detail as requested. Team:SDK

Comments

@mattgen88
Copy link

Description

After upgrading to the latest dotnet-sdk-6.0, no sdks are found

Version: 6.0.302-1
Priority: standard
Section: devel
Maintainer: Microsoft <[email protected]>
Installed-Size: 339 MB
Depends: dotnet-targeting-pack-6.0 (>= 6.0.7), netstandard-targeting-pack-2.1 (>= 2.1.0), aspnetcore-runtime-6.0 (>= 6.0.7), dotnet-apphost-pack-6.0 (>= 6.0.7), dotnet-runtime-6.0 (>= 6.0.7), aspnetcore-targeting-pack-6.0 (>= 6.0.7)
Homepage: https://github.com/dotnet/core
Download-Size: 84.9 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.302
 .NET is a development platform that you can use to build command-line applications, microservices and modern websites. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/dotnet/core). We happily accept issues and PRs.

packages were removed and re-isntalled to the same result.

$dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.7
  Architecture: x64
  Commit:       0ec02c8c96

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.7 [/usr/lib/dotnet/dotnet6-6.0.107/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.7 [/usr/lib/dotnet/dotnet6-6.0.107/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

Installed packages:

$apt search dotnet | ack installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

aspnetcore-runtime-6.0/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
dotnet-apphost-pack-6.0/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
dotnet-host/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
dotnet-hostfxr-6.0/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
dotnet-runtime-6.0/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
dotnet-sdk-6.0/jammy,now 6.0.302-1 amd64 [installed]
dotnet-targeting-pack-6.0/jammy-proposed,now 6.0.107-0ubuntu2~22.04.1 amd64 [installed,automatic]
libgtk2.0-cil/jammy,now 2.12.40-3ubuntu1 amd64 [installed,automatic]

Configuration

Regression?

Before upgrading to 6.0.302-1, the 6.0 sdk was available. After upgrade, I have no sdks and can no longer build applications.

Other information

@mattgen88
Copy link
Author

Current work around is to download the binary tar.gz for SDK 6.0.302 instead of using the package manager version https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Installing via package manager results in no sdks. Installing the binary, the 6.0 sdk is available.

@buyaa-n
Copy link
Member

buyaa-n commented Aug 4, 2022

CC @wli3 @dsplaisted

@dsplaisted
Copy link
Member

@MichaelSimons Any idea why this would happen? I tried updating to the latest packages on Ubuntu 18 and it didn't give me any issues. The package version numbers look different though:

dsplaisted@DEEPMINI:~$ apt search dotnet | ack installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

aspnetcore-runtime-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
aspnetcore-targeting-pack-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-apphost-pack-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-host/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-hostfxr-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-runtime-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-runtime-deps-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
dotnet-sdk-6.0/jammy,now 6.0.302-1 amd64 [installed]
dotnet-targeting-pack-6.0/jammy,now 6.0.7-1 amd64 [installed,automatic]
netstandard-targeting-pack-2.1/jammy,now 2.1.0-1 amd64 [installed,automatic]

@MichaelSimons
Copy link
Member

Please see #7699 for guidance on how to resolve this situation.

@buyaa-n buyaa-n added the needs-more-info Not enough information has been provided. Please share more detail as requested. label Aug 14, 2022
@github-actions
Copy link

This issue is stale because there has been no response to a request for more information for 7 days.

@github-actions github-actions bot added the Stale label Aug 21, 2022
@mattgen88
Copy link
Author

Resolved by #7699 confirmed

@github-actions github-actions bot removed the Stale label Aug 21, 2022
@mairaw
Copy link
Contributor

mairaw commented Aug 23, 2022

So I'll close the bug. Thanks for letting us know.

@mairaw mairaw closed this as completed Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Not enough information has been provided. Please share more detail as requested. Team:SDK
Projects
None yet
Development

No branches or pull requests

5 participants