-
Notifications
You must be signed in to change notification settings - Fork 447
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
Installing with apt install dotnet-sdk-6.0
yields no executable file on Ubuntu 20.04
#12939
Comments
cant repro $ docker run -it ubuntu:20.04
$ apt update
$ apt-get install -y wget
$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
$ dpkg -i packages-microsoft-prod.deb
$ rm packages-microsoft-prod.deb
$ apt-get update && apt-get install -y apt-transport-https && apt-get update && apt-get install -y dotnet-sdk-6.0
$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.101
Commit: ef49f6213a
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/6.0.101/
Host (useful for support):
Version: 6.0.1
Commit: 3a25a7f1cc
.NET SDKs installed:
6.0.101 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download |
I can indeed confirm that it works on a clean docker run. However, it fails just as I described on 4 different machines I own with Ubuntu 20.04, one of them being on WSL2. Makes me think there must be something connecting them that breaks this install process, but I have no idea what it might be. Here is the full output of my commands, this from my WSL2 instance, but they all look similar:
|
I noticed Can you try running I'm able to reproduce your situation if I install |
That's a good catch.
|
it seems that I have a similar problem. note: and when i installed dotnet-sdk-6.0 i got: |
@Moawyah-AbdulRahman, you've found an old, closed issue, which aren't typically monitored for new comments. You should take a look at this, instead, since it appears you're on Ubuntu 22.04: |
Installing .NET SDK on Ubuntu 20.04 with the commands listed in the Install .NET on Ubuntu docs:
produces no
dotnet
executable.Listing files from the package:
gives
The
/usr/share/dotnet
directory contains no executable. I compared this result with my other Ubuntu installation where I installed dotnet ages ago, and there it is installed in/usr/share/dotnet
but there exists a/usr/share/dotnet/dotnet
executable. It's as if the current download via apt didn't include any executables.What am I doing wrong? How to install
dotnet
on Ubuntu with APT?Using snap is not an option.
The text was updated successfully, but these errors were encountered: