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 'https://packages.microsoft.com/repos/aspnetcore/ubuntu 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?

Urmmm...?

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:

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb

After finished retrieving the package; install with

sudo dpkg -i packages-microsoft-prod.deb

Run

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

OR

sudo apt install dotnet-runtime-3.1

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

ian@ian-T430s:~$ sudo apt update
Hit:1 http://gb.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://gb.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:3 http://ppa.launchpad.net/zorinos/apps/ubuntu focal InRelease             
Hit:4 http://gb.archive.ubuntu.com/ubuntu focal-backports InRelease            
Hit:5 https://cli.github.com/packages stable InRelease                         
Hit:6 http://packages.microsoft.com/repos/code stable InRelease                
Hit:7 http://ppa.launchpad.net/zorinos/drivers/ubuntu focal InRelease          
Hit:8 https://brave-browser-apt-release.s3.brave.com stable InRelease          
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:10 http://ppa.launchpad.net/zorinos/patches/ubuntu focal InRelease         
Hit:11 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease        
Hit:12 http://ppa.launchpad.net/zorinos/stable/ubuntu focal InRelease          
Hit:13 http://security.ubuntu.com/ubuntu focal-security InRelease              
Hit:14 https://dl.google.com/linux/chrome/deb stable InRelease                 
Hit:15 https://packages.zorinos.com/stable focal InRelease                  
Hit:16 https://packages.zorinos.com/patches focal InRelease
Hit:17 https://packages.zorinos.com/apps focal InRelease
Hit:18 https://packages.zorinos.com/drivers focal InRelease
Hit:19 https://packages.zorinos.com/premium 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'
ian@ian-T430s:~$

I downloaded Packages from:
https://packages.microsoft.com/ubuntu/20.04/prod/dists/focal/main/binary-amd64/

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.