Skip to content

Installing with apt install dotnet-sdk-6.0 yields no executable file on Ubuntu 20.04 #12939

Closed
@V0ldek

Description

@V0ldek

Installing .NET SDK on Ubuntu 20.04 with the commands listed in the Install .NET on Ubuntu docs:

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-6.0

produces no dotnet executable.

Command 'dotnet' not found, but can be installed with:

sudo snap install dotnet-sdk

Listing files from the package:

dpkg -L dotnet-sdk-6.0 | grep -P "dotnet$"

gives

/usr/share/dotnet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions