Cannot update or install things via console

so i was trying to install mono (.net for linux) but it seemed that i installed the wrong version or did it wrong so now everytime i want to do something it says (sorry but my zorin its in spanish)
E: Entrada 1 mal especificada en list fichero /etc/apt/sources.list.d/mono-official-stable.list (Component)
E: No se pudieron leer las listas de fuentes.
E: Entrada 1 mal especificada en list fichero /etc/apt/sources.list.d/mono-official-stable.list (Component)
E: No se pudieron leer las listas de fuentes.

It looks like the Mono repository you added has a malformed entry. You should remove the repository for Mono either with terminal or Software & Updates > Other Software tab to select the repository associated with Mono, then click the Remove button on the bottom toolbar.

If you are on Zorin OS 16:

the Mono repository should have a GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
And the repository:
sudo apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'

sudo apt update && install mono-complete

If using Zorin OS 17.1 or later:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb https://download.mono-project.com/repo/ubuntu stable-jammy main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt update && sudo apt install mono-complete

1 Like

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