CentOS 8: Failed to download metadata for repo 'appstream'

Issues related to applications and software problems and general support
abhishek76
Posts: 4
Joined: 2015/02/18 17:16:05

Re: My Solution - Works on 3 CentOS instances

Post by abhishek76 » 2022/03/07 18:02:07

[Moderator edit: removed the massive quote of the entire previous post]
Hello,
I get the following error when running the ' dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos' command after editing the .repo files following your instructions:
Last metadata expiration check: 0:01:22 ago on Mon 07 Mar 2022 12:51:24 PM EST.
No match for argument: centos-linux-repos
No packages marked for removal.
Error:
Problem: conflicting requests
- nothing provides centos-gpg-keys = 1:8-3.el8 needed by centos-stream-repos-8-3.el8.noarch

Would you be able to tell what's wrong?

Thanks
--Abhishek

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8: Failed to download metadata for repo 'appstream'

Post by TrevorH » 2022/03/07 18:03:23

What is the output from rpm -qa \*-release\* ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

DtiA
Posts: 2
Joined: 2022/03/07 10:19:57

Re: CentOS 8: Failed to download metadata for repo 'appstream'

Post by DtiA » 2023/02/21 16:36:39

TrevorH wrote:
2022/01/31 20:37:35
The correct and easy way to migrate from CentOS Linux 8 to CentOS Stream 8 is to run:

Code: Select all

dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
[Edited with the v2 version of how to...]
Thanks, this worked in 2023.

mkhomo
Posts: 4
Joined: 2021/03/24 06:45:22

Re: CentOS 8: Failed to download metadata for repo 'appstream'

Post by mkhomo » 2023/04/07 22:46:38

TrevorH wrote:
2022/01/31 20:37:35
The correct and easy way to migrate from CentOS Linux 8 to CentOS Stream 8 is to run:

Code: Select all

dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
[Edited with the v2 version of how to...]
I got a hint like the above from this forum and so I tried it and the first line worked but the sync one stopped on a chrome package. Is there hope here or is this a lost cause still? Until now dnf has been quite dead almost 2yrs.

Here, my experience that I just recreated:
[mkhomo@urion:mkhomo/14:09]$ uname -a
Linux urion.muric.ostecs.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[mkhomo@urion:mkhomo/14:09]$ sudo dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
[sudo] password for mkhomo:
Updating Subscription Management repositories.
Last metadata expiration check: 1 day, 0:07:34 ago on Fri 07 Apr 2023 00:24:57 SAST.
No match for argument: centos-linux-repos
No packages marked for removal.
Package centos-stream-repos-8-3.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[mkhomo@urion:mkhomo/14:09]$ sudo dnf distro-sync
Updating Subscription Management repositories.
Last metadata expiration check: 1 day, 0:07:33 ago on Fri 07 Apr 2023 00:25:52 SAST.
Error:
Problem: package chrome-remote-desktop-96.0.4664.110-2.el8.x86_64 requires chromium-common(x86-64) = 96.0.4664.110-2.el8, but none of the providers can be installed
- chromium-common-96.0.4664.110-2.el8.x86_64 does not belong to a distupgrade repository
- problem with installed package chrome-remote-desktop-96.0.4664.110-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[mkhomo@urion:mkhomo/14:09]$

NB: Following the last hint ('--skip-broken' or '--nobest') on one or other, each one punts to the other circularly into a no-op.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 8: Failed to download metadata for repo 'appstream'

Post by TrevorH » 2023/04/08 00:21:09

Remove chromium, upgrade, install it again.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

Re: CentOS 8: Failed to download metadata for repo 'appstream'

Post by jlehtone » 2023/04/08 11:32:00

mkhomo wrote:
2023/04/07 22:46:38
Until now dnf has been quite dead almost 2yrs.
What do you mean by "quite dead"?

The last larger set of updates for CentOS Linux 8 were released in Nov 2021 and the distro has been EOL since the end of that year. No more updates naturally leads to no updates available to install.


When you did chose to try conversion from CentOS Linux 8 to CentOS Stream 8, was it because you really want a CentOS Stream distro, or because you missed info about the spiritual successors of CentOS Linux, the AlmaLinux and Rocky Linux?

Post Reply