Problem installing/removing Mono

Issues related to applications and software problems and general support
Post Reply
FrankNatoli
Posts: 2
Joined: 2021/05/14 14:04:25

Problem installing/removing Mono

Post by FrankNatoli » 2021/05/14 14:18:20

With ongoing problems with Microsoft .NET Core on Centos8, tried and failed to install Mono, first for Centos8 stable, then for Centos7 stable, getting the following message:

error: http://pool.sks-keyservers.net/pks/look ... 38d3d831ef: import read failed(2).
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189 100 189 0 0 1524 0 --:--:-- --:--:-- --:--:-- 1524
[mono-centos7-stable]
name=mono-centos7-stable
baseurl=https://download.mono-project.com/repo/centos7-stable/
enabled=1
gpgcheck=1
gpgkey=https://download.mono-project.com/repo/xamarin.gpg
Repository mono-centos8-stable is listed more than once in the configuration
created by dnf config-manager from https://download.mono-project.com/repo/ ... table.repo 1.2 kB/s | 288 B 00:00
Errors during downloading metadata for repository 'download.mono-project.com_repo_centos8-stable.repo':
- Status code: 404 for https://download.mono-project.com/repo/ ... repomd.xml (IP: 72.21.81.200)
Error: Failed to download metadata for repo 'download.mono-project.com_repo_centos8-stable.repo': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


Now, "yum repolist all" mentions Mono four times:

repo id repo name status
download.mono-project.com_repo_centos created by dnf confi enabled
download.mono-project.com_repo_centos8-stable.repo created by dnf confi enabled
mono-centos7-stable mono-centos7-stable enabled
mono-centos8-stable mono-centos8-stable enabled


Any attempt to use "sudo yum install xyz" triggers complaints about Mono.
Almost any "dnf" triggers "Repository mono-centos8-stable is listed more than once in the configuration".
How can I purge all traces of Mono, containers, repositories, the works, from my system?
Many thanks.

User avatar
TrevorH
Forum Moderator
Posts: 30791
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problem installing/removing Mono

Post by TrevorH » 2021/05/14 14:36:30

If this is CentOS 8 then do not attempt to use a CentOS 7 repo on it (or vice versa). You should remove the extraneous one(s) from /etc/yum.repos.d and check for packages installed from them using EPEL's keychecker package. And while we're on that subject, mono is in EPEL so no need to go off to external repos to get it.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

FrankNatoli
Posts: 2
Joined: 2021/05/14 14:04:25

Re: Problem installing/removing Mono

Post by FrankNatoli » 2021/05/14 14:46:54

I was tempted to simply remove the relevant files in /etc/yum.repos.d but was afraid that would leave other files or folders.
Will do, thanks.

User avatar
TrevorH
Forum Moderator
Posts: 30791
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problem installing/removing Mono

Post by TrevorH » 2021/05/14 14:48:46

Try rpm -qa \*-release and see if any of them are installed via e.g. mono-release packages that you can yum remove.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”