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

Runtimes downloaded from Microsoft repos aren't detected by dotnet due to different installation directory #83950

Closed
Kysawier opened this issue Mar 26, 2023 · 1 comment

Comments

@Kysawier
Copy link

Description

After following the installation instructions outlined in the Microsoft documentation (https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository) for installing .NET/ASP.NET Core runtimes/SDKs on Linux Ubuntu, I noticed that .NET/ASP.NET Core runtimes for version 6 and 7 are installed in a different location. As a result, the dotnet application is unable to locate the .NET/ASP.NET Core 6 runtimes.

Reproduction Steps

Following https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository

Expected behavior

dotnet-runtime-6.0 installed under /usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.13
and /usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.13

Actual behavior

dotnet-runtime-6.0 installed under /usr/lib/dotnet/shared/Microsoft.NETCore.App/6.0.13
and /usr/lib/dotnet/shared/Microsoft.AspNetCore.App/6.0.13

Regression?

No response

Known Workarounds

Create symbolic links for the .NET and ASP.NET Core runtime

sudo ln -s /usr/lib/dotnet/shared/Microsoft.NETCore.App/6.0.13/ /usr/share/dotnet/shared/Microsof
t.NETCore.App/6.0.13


sudo ln -s /usr/lib/dotnet/shared/Microsoft.AspNetCore.App/6.0.13/ /usr/share/dotnet/shared/Microsoft.AspNetCore.App/6.0.13

Configuration

WSL2 Ubuntu 22.04.1 LTS

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 26, 2023
@NikolaMilosavljevic NikolaMilosavljevic removed the untriaged New issue has not been triaged by the area owner label Apr 25, 2023
@NikolaMilosavljevic
Copy link
Member

@Kysawier there are known issues with mixing packages from Microsoft and distro-specific repositories. Can you check if instructions outlined in the following issue are helpful? dotnet/core#7699

@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants