Help/Advice on installing .NET 7 on Zorin 16 Pro

Is it possible to install .NET 7 on Zorin 16 Pro?

I found some instructions that said add the Microsoft package repository. I can't find those instructions again to quote them here. Now my apt update reports this:

Get:17 Index of /ubuntu/22.04/prod/ jammy/main amd64 Packages [55.2 kB]
Get:18 Index of /ubuntu/22.04/prod/ jammy/main armhf Packages [6,324 B]
Get:19 Index of /ubuntu/22.04/prod/ jammy/main all Packages [841 B]
Get:20 Index of /ubuntu/22.04/prod/ jammy/main arm64 Packages [11.7 kB]
Hit:21 Index of /stable/ focal InRelease
Hit:22 Index of /patches/ focal InRelease
Hit:23 Index of /apps/ focal InRelease
Hit:24 Index of /drivers/ focal InRelease
Hit:25 Download - Zorin OS focal InRelease
Reading package lists... Done
E: The repository ' focal Release' does not have a Release file.

I'm not exacly sure where to find the package repository list that dpkg uses to clean this up, or how to resolve this error.

Has anyone been here before?


You can remove the non-working repository with Software & Updates in the "Other software" tab. Scroll to the microsoft repo, select it- then click the Remove button.

Next, grab the current Microsoft repo installer:


After finished retrieving the package; install with

sudo dpkg -i packages-microsoft-prod.deb


sudo apt update

to ensure all is well. If so, you can install the item you need:

sudo apt install apt-transport-https

sudo apt install dotnet-sdk-3.1


sudo apt install dotnet-runtime-3.1

Hmm. I'm getting package not found, except:

ian@ian-T430s:~$ sudo apt update
Hit:1 focal InRelease
Hit:2 focal-updates InRelease              
Hit:3 focal InRelease             
Hit:4 focal-backports InRelease            
Hit:5 stable InRelease                         
Hit:6 stable InRelease                
Hit:7 focal InRelease          
Hit:8 stable InRelease          
Hit:9 focal InRelease                 
Hit:10 focal InRelease         
Hit:11 focal InRelease        
Hit:12 focal InRelease          
Hit:13 focal-security InRelease              
Hit:14 stable InRelease                 
Hit:15 focal InRelease                  
Hit:16 focal InRelease
Hit:17 focal InRelease
Hit:18 focal InRelease
Hit:19 focal InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up-to-date.
ian@ian-T430s:~$ grep "^Package: " <./Downloads/Packages|grep "7.0$"|sort -u
Package: aspnetcore-runtime-7.0
Package: aspnetcore-targeting-pack-7.0
Package: dotnet-apphost-pack-7.0
Package: dotnet-hostfxr-7.0
Package: dotnet-runtime-7.0
Package: dotnet-runtime-deps-7.0
Package: dotnet-sdk-7.0
Package: dotnet-targeting-pack-7.0
ian@ian-T430s:~$ sudo apt install dotnet-sdk-7.0
[sudo] password for ian:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package dotnet-sdk-7.0
E: Couldn't find any package by glob 'dotnet-sdk-7.0'

I downloaded Packages from:

I'm going to try this: Install .NET on Linux without using a package manager - .NET | Microsoft Learn

Hmm. I think your recommendation was OK. I didn't try the script. I just cleaned up and followed your instructions closely, so thank you very much for your help.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.