Not able to install .net 5.0 runtime on debian

Niklas 21 Reputation points
2021-06-24T18:13:50.733+00:00

Situation: The .net 5.0 runtime does somehow not install on debian. We have use the instruction of the following website : https://learn.microsoft.com/de-de/dotnet/core/install/linux-debian

Here is the things we have typed in the console:

pi@raspberrypi:~ $ sudo apt-get install -y {dotnet-package}
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package {dotnet-package}
pi@raspberrypi:~ $ sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
(Reading database ... 105431 files and directories currently installed.)
Removing packages-microsoft-prod (1.0-debian10.1) ...
Purging configuration files for packages-microsoft-prod (1.0-debian10.1) ...
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 105424 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-debian10.1) ...
Setting up packages-microsoft-prod (1.0-debian10.1) ...
pi@raspberrypi:~ $ sudo apt-get install -y gpg
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpg is already the newest version (2.2.12-1+rpi1+deb10u1).
The following package was automatically installed and is no longer required:
python-colorzero
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
pi@raspberrypi:~ $
pi@raspberrypi:~ $ wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o microsoft.asc.gpg
--2021-06-24 19:55:06-- https://packages.microsoft.com/keys/microsoft.asc
Resolving packages.microsoft.com (packages.microsoft.com)... 13.80.99.124
Connecting to packages.microsoft.com (packages.microsoft.com)|13.80.99.124|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 983 [application/octet-stream]
Saving to: 'STDOUT'

    -                            100%[============================================>]     983  --.-KB/s    in 0s  

    2021-06-24 19:55:06 (32,5 MB/s) - written to stdout [983/983]  

    pi@raspberrypi:~ $   
    pi@raspberrypi:~ $ sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/  
    pi@raspberrypi:~ $ wget https://packages.microsoft.com/config/debian/10/prod.list  
    --2021-06-24 19:55:25--  https://packages.microsoft.com/config/debian/10/prod.list  
    Resolving packages.microsoft.com (packages.microsoft.com)... 13.80.99.124  
    Connecting to packages.microsoft.com (packages.microsoft.com)|13.80.99.124|:443... connected.  
    HTTP request sent, awaiting response... 200 OK  
    Length: 74 [application/octet-stream]  
    Saving to: 'prod.list'  

    prod.list                    100%[============================================>]      74  --.-KB/s    in 0s  

    2021-06-24 19:55:26 (44,8 MB/s) - 'prod.list' saved [74/74]  

    pi@raspberrypi:~ $ sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list  
    pi@raspberrypi:~ $   
    pi@raspberrypi:~ $ sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg  
    pi@raspberrypi:~ $   
    pi@raspberrypi:~ $ sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list  
    pi@raspberrypi:~ $ sudo apt-get install -y dotnet-runtime-5.0  
    Reading package lists... Done  
    Building dependency tree  
    Reading state information... Done  
    E: Unable to locate package dotnet-runtime-5.0  
    E: Couldn't find any package by glob 'dotnet-runtime-5.0'  
    E: Couldn't find any package by regex 'dotnet-runtime-5.0'  

It seems like the website contained in the prod.list would not lead you to anything (must not be right)

prod.list
deb [arch=amd64] https://packages.microsoft.com/debian/10/prod buster main

i would suggest (or anything like this)
deb [arch=amd64] https://packages.microsoft.com/debian/10/prod/dists/buster/main

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
957 questions
{count} votes