yum install got broken on Centos 8

Issues related to applications and software problems and general support
search4workingdistro
Posts: 66
Joined: 2020/11/18 10:52:19

yum install got broken on Centos 8

Post by search4workingdistro » 2021/07/12 08:51:40

It all started with

Code: Select all

$ sudo yum install python36
sea's devel packages                                                                                                   98  B/s | 226  B     00:02    
Errors during downloading metadata for repository 'FedoraPeople-sea':
  - Status code: 403 for https://sea.fedorapeople.org/repo/repodata/repomd.xml (IP: 152.19.134.199)
Error: Failed to download metadata for repo 'FedoraPeople-sea': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Version is:

Code: Select all

$ lsb_release -d
Description:	CentOS Linux release 8.3.2011
Tried that:

Code: Select all

$ sudo dnf clean all
74 files removed
$ sudo rm -r /var/cache/dnf
$ sudo dnf upgrade
CentOS Linux 8 - AppStream                                                                                            5.3 MB/s | 8.1 MB     00:01    
CentOS Linux 8 - BaseOS                                                                                               3.0 MB/s | 3.6 MB     00:01    
CentOS Linux 8 - Extras                                                                                                14 kB/s | 9.8 kB     00:00    
created by dnf config-manager from https://brave-browser-rpm-release.s3.brave.com/x86_64/                              18 kB/s | 8.4 kB     00:00    
Docker CE Stable - x86_64                                                                                              57 kB/s |  14 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                570 kB/s | 663 kB     00:01    
Extra Packages for Enterprise Linux 8 - x86_64                                                                         12 MB/s |  10 MB     00:00    
Double Commander (CentOS_8)                                                                                            85 kB/s | 169 kB     00:01    
RPM Fusion for EL 8 - Free - Updates                                                                                  1.4 MB/s | 290 kB     00:00    
RPM Fusion for EL 8 - Nonfree - Updates                                                                               153 kB/s |  79 kB     00:00    
sea's devel packages                                                                                                  111  B/s | 226  B     00:02    
Errors during downloading metadata for repository 'FedoraPeople-sea':
  - Status code: 403 for https://sea.fedorapeople.org/repo/repodata/repomd.xml (IP: 152.19.134.199)
Error: Failed to download metadata for repo 'FedoraPeople-sea': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
But still no luck...

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum install got broken on Centos 8

Post by jlehtone » 2021/07/12 09:32:38

You are behind in updates.

Code: Select all

$ cat /etc/centos-release
CentOS Linux release 8.4.2105
Your problem seems to be a repository, not dnf. ('yum' is mere symlink to 'dnf'.)
Disable the troublemaker:

Code: Select all

$ sudo dnf config-manager --disable FedoraPeople-sea

search4workingdistro
Posts: 66
Joined: 2020/11/18 10:52:19

Re: yum install got broken on Centos 8

Post by search4workingdistro » 2021/07/12 10:04:41

$ sudo dnf config-manager --disable FedoraPeople-sea
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
I am on CentOS, have no subscription and do not want to pay or register.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum install got broken on Centos 8

Post by jlehtone » 2021/07/12 10:34:01

Those are unrelated messages. Some packages (e.g. podman) have subscription-manager ( a "yum plugin") as dependency. The plugin can be disabled to avoid messages from that plugin.

Can you now?

Code: Select all

sudo dnf --enablerepo=* clean all
sudo dnf update
sudo dnf install python36

PS. AppStream has already python38 and python39.

search4workingdistro
Posts: 66
Joined: 2020/11/18 10:52:19

Re: yum install got broken on Centos 8

Post by search4workingdistro » 2021/07/12 12:30:13

Thank you. That seems to work.

search4workingdistro
Posts: 66
Joined: 2020/11/18 10:52:19

Re: yum install got broken on Centos 8

Post by search4workingdistro » 2021/10/23 11:07:42

OK, the most reliable distro got broken in the same place again but this time the solution
jlehtone wrote:
2021/07/12 10:34:01

Code: Select all

sudo dnf --enablerepo=* clean all
sudo dnf update
does not seem to help:

Code: Select all

$ sudo dnf --enablerepo=* clean all
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

55 files removed
$ sudo dnf update
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

CentOS Linux 8 - AppStream                                                                                            3.2 MB/s | 9.3 MB     00:02    
CentOS Linux 8 - BaseOS                                                                                               1.6 MB/s | 7.5 MB     00:04    
CentOS Linux 8 - Extras                                                                                                20 kB/s |  10 kB     00:00    
created by dnf config-manager from https://brave-browser-rpm-release.s3.brave.com/x86_64/                              35 kB/s | 8.4 kB     00:00    
Docker CE Stable - x86_64                                                                                              82 kB/s |  16 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                1.8 MB/s | 955 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                                                                        4.4 MB/s |  10 MB     00:02    
Double Commander (CentOS_8)                                                                                           4.2 kB/s | 1.1 kB     00:00    
Errors during downloading metadata for repository 'home_Alexx2000':
  - Status code: 404 for https://download.opensuse.org/repositories/home:/Alexx2000/CentOS_8/repodata/repomd.xml (IP: 195.135.221.134)
Error: Failed to download metadata for repo 'home_Alexx2000': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
How do I fix that?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum install got broken on Centos 8

Post by jlehtone » 2021/10/23 11:49:22

Third party repos, like 'home_Alexx2000' are not part of "most reliable". The only way to prevent user from messing up the system is to prevent user from doing anything. The el8 does not do that. Apple might.

Either your repo definition is flawed or that repo has an issue. Disable or fix the third-party repo.

search4workingdistro
Posts: 66
Joined: 2020/11/18 10:52:19

Re: yum install got broken on Centos 8

Post by search4workingdistro » 2021/10/23 12:43:10

jlehtone wrote:
2021/10/23 11:49:22
Third party repos, like 'home_Alexx2000' are not part of "most reliable". The only way to prevent user from messing up the system is to prevent user from doing anything. The el8 does not do that. Apple might.
Please correct me if I am wrong but there is no other way to install Double Commander, other than adding a third-party repo. A bit surprised that this popular file manager is not available from standard repos.
jlehtone wrote:
2021/10/23 11:49:22
Either your repo definition is flawed or that repo has an issue. Disable or fix the third-party repo.
How exactly do I do this?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum install got broken on Centos 8

Post by jlehtone » 2021/10/23 14:39:30

I did already show you how to disable a repo (FedoraPeople-sea).

The latest error message shows:

Code: Select all

https://download.opensuse.org/repositories/home:/Alexx2000/CentOS_8/repodata/repomd.xml
That looks suspicious, because there is a colon in the middle. Perhaps you have typo in the definition of home_Alex2000?
You did install that repo definition.

I've never heard of "Double Commander". Then again, I don't use any GUI for file management, not even the ones supplied by the distro.

Mike_Rochefort
Posts: 215
Joined: 2016/03/16 02:34:19

Re: yum install got broken on Centos 8

Post by Mike_Rochefort » 2021/10/23 14:47:03

search4workingdistro wrote:
2021/10/23 12:43:10
Please correct me if I am wrong but there is no other way to install Double Commander, other than adding a third-party repo.
Besides building it yourself, correct. However, Double Commander is also shipped in Fedora, so you could open a request to have it packaged in EPEL rather than use a OpenSUSE OBS repo (more akin to Fedora COPR). To do this you can open a ticket in Bugzilla, send an email to the epel-devel mailing list, or reach out to the maintainer directly.

https://src.fedoraproject.org/rpms/doublecmd
https://bugzilla.redhat.com/
https://lists.fedoraproject.org/archive ... oject.org/
https://accounts.fedoraproject.org/user/vascom/
search4workingdistro wrote:
2021/10/23 12:43:10
A bit surprised that this popular file manager is not available from standard repos.
The standard repos for Enterprise Linux (RHEL and derivatives) is very constrained as it is not a general purpose kitchen-sink Linux distribution. Every package that is shipped in RHEL has a lifecycle and support guideline attached to it. The most common way for packages to be available that are not in the distribution itself is through EPEL, and if that's not possible (patents, non-FOSS, etc), through RPM Fusion.
search4workingdistro wrote:
2021/10/23 12:43:10
How exactly do I do this?
1) See what repos you have installed and enabled.
2) Disable any repos that are not BaseOS/AppStream/PowerTools/Extras
3) Run your update
4) Optionally turn on whatever repos you see fit.

Code: Select all

$ dnf repolist
$ dnf clean all
$ dnf config-manager --disable <repo-id> <repo-id> ...
$ dnf upgrade
$ dnf install @python36
As for why you're having an issue with the Double Commander repository, that's due to the fact that it doesn't exist. If you visit Alexx2000's file tree, you'll see that CentOS_8 is not a distribution root available. If it was in the past, it has since been removed. If you want to try to use a different distribution root, modify the repo file for that repository in /etc/yum.repos.d/, but there's zero guarantee of the package functioning or installing correctly.

https://download.opensuse.org/repositor ... /Alexx2000

@jlehtone: The colon in the URL is part of the OpenSUSE OBS namespacing, nothing nefarious.

Cheers,
Mike
Solution Architect @RedHat | RHCE
Former SysAdmin @BlueSkyStudios and @Pixar
Feature animation and VFX enthusiast
--
Report CentOS Stream 8 bugs: https://da.gd/c8s-bugs
Report CentOS Stream 9 bugs: https://da.gd/c9s-bugs

Post Reply