Update broken in CentOS Stream 8

Issues related to applications and software problems and general support
Ruttrowg
Posts: 6
Joined: 2022/05/27 21:28:05

Update broken in CentOS Stream 8

Post by Ruttrowg » 2022/05/27 21:33:28

I used the web interface to update and after completing and rebooted, the update is now broken. It appears the repository does not exist. Is there a specific file I can edit to change the path ?

Image

It looks like I need to edit the URL since it does not exist.

Error in text
available updates failed cannot update repo 'extras-common': Cannot download repomd.xml: Cannot download repodata/repomd.xml:
Attachments
8B5F156D-BBD0-4B61-BCEC-D5710B9C703B.png
8B5F156D-BBD0-4B61-BCEC-D5710B9C703B.png (57.67 KiB) Viewed 11223 times

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

Re: Update broken in CentOS Stream 8

Post by jlehtone » 2022/05/28 11:45:21

The https://vault.centos.org/centos/8-stream/AppStream/ has only Source, no x86_64.

A repo definition, like for appstream, can have either mirrorlist or baseurl.
If yours has mirrorlist and requests URLs for the proper Stream 8 appstream, then the server hands out faulty URLs.
If yours has baseurl, then why does it point to vault? Surely the official Stream repos are elsewhere?

If the problem is only with appstream, not baseos, then you should be able to:

Code: Select all

dnf --disablerepo=appstream reinstall centos-stream-repos
It might be that even the reinstall does not overwrite the *.repo configuration files, but creates *.repo.rpmnew
Then replace *.repo with corrensponding *.repo.rpmnew

Ruttrowg
Posts: 6
Joined: 2022/05/27 21:28:05

Re: Update broken in CentOS Stream 8

Post by Ruttrowg » 2022/05/28 13:00:49

Greetings, thanks for the suggestion. It yielded this error for me. Is there a file somewhere that shows the bad URL I could edit with vi?

Image
Attachments
error.png
error.png (60.64 KiB) Viewed 11204 times

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

Re: Update broken in CentOS Stream 8

Post by jlehtone » 2022/05/28 13:08:46

That was predictable -- both baseos and appstream point to vault, while they should not.

The [baseos] could have, at least temporarily:

Code: Select all

baseurl=http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/

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

Re: Update broken in CentOS Stream 8

Post by TrevorH » 2022/05/28 13:43:29

Check and see if you have any /etc/yum.repos.d/*.rpmsave or .rpmnew files. Those may be the correct ones and since you modified the originals to point to vault, they will not have been replaced on update.
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

Ruttrowg
Posts: 6
Joined: 2022/05/27 21:28:05

Re: Update broken in CentOS Stream 8

Post by Ruttrowg » 2022/05/28 14:09:44

Thanks.

I was able to disable the repos that were enabled. And then I enabled one that was already disabled, called CentOS Stream 8 - RT - Source.
After doing this, yum update worked.

Now on to fix a security remediation.

Cheers.

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

Re: Update broken in CentOS Stream 8

Post by TrevorH » 2022/05/28 14:12:22

It may have "worked" but it most likely isn't doing much useful. Without BaseOS and AppStream you are missing fixes for about 98% of the distro. You need to point them at the right urls and re-enable them or you will get steadily more and more out of date.
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

Ruttrowg
Posts: 6
Joined: 2022/05/27 21:28:05

Re: Update broken in CentOS Stream 8

Post by Ruttrowg » 2022/06/07 20:36:15

I am not very crafty in Linux. Hope maybe someone can help. I do not know how to repoint my Linux to get all updates. Also our organization blocks sites outside of the U.S. Yum update and Sudo dnf not finding anything. Can someone guide me in the commands to enable working URLS that are located in the US?

I have two showing running the sudo dnf repolist
repdo id
appstream-source CentOS Stream 8 - AppStgream - Source
rt-source CentOS Stream 8 - RT - Source

I disabled the other ones, because when I ran yum update it give errors on the others.


I am trying to update a few vulnerabilities, specifically in the containers-common.

Nessus 160963
"Plugin Output:
Remote package installed : containers-common-1-23.module_el8.7.0+1106+45480ee0
Should be : containers-common-1.2.4-1.module_el8.6.0"

Nessus 161004
"Plugin Output:
Remote package installed : containers-common-1-23.module_el8.7.0+1106+45480ee0
Should be : containers-common-1.2.4-1.module_el8.6.0"

Is there a command I can run to get the containers-common-1.2.4-1.module_el8.6.0 and install using command line, from a site in the U.S?
I ran the command rpm -q containers-common, and it comes back with the containers-common-1-23.module_el8.7.0+1106+45480ee0

Thanks,

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

Re: Update broken in CentOS Stream 8

Post by TrevorH » 2022/06/07 22:02:54

I have two showing running the sudo dnf repolist
repdo id
appstream-source CentOS Stream 8 - AppStgream - Source
rt-source CentOS Stream 8 - RT - Source
Those are useless to you and should be disabled. They are for retrieving Source RPM packages and you don't need those.

What files do you have in /etc/yum.repos.d?

The ones you are interested in will be called things like CentOS-Stream-*.repo but there is a possibility that you may have either older copies or newer ones installed there that are not used because they do not end with .repo. Only .repo files are used from that directory. If you have any .repo.rpmnew or .repo.rpmsave then those may be the correct ones that you should use. Alternatively you could create a /etc/yum.repos.d/old/ directory, move all the CentOS-Stream-*.repo files into /etc/yum.repos.d/old/ then install new copies of all the CentOS Stream supplied repo files by running

Code: Select all

dnf --disablerepo=\* install http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-6.el8.noarch.rpm
(if that complains that it's already installed, try using dnf --disablerepo=\* update with the same url instead).
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

Ruttrowg
Posts: 6
Joined: 2022/05/27 21:28:05

Re: Update broken in CentOS Stream 8

Post by Ruttrowg » 2022/06/08 15:43:46

q: What files do you have in /etc/yum.repos.d?

I show these:

rw-r--r--. 1 root root 719 May 28 10:53 CentOS-Stream-AppStream.repo
-rw-r--r--. 1 root root 704 May 28 09:51 CentOS-Stream-BaseOS.repo
-rw-r--r--. 1 root root 316 May 27 16:15 CentOS-Stream-Debuginfo.repo
-rw-r--r--. 1 root root 750 May 28 09:52 CentOS-Stream-Extras-common.repo
-rw-r--r--. 1 root root 706 May 28 09:51 CentOS-Stream-Extras.repo
-rw-r--r--. 1 root root 740 May 27 16:15 CentOS-Stream-HighAvailability.repo
-rw-r--r--. 1 root root 696 May 28 10:55 CentOS-Stream-Media.repo
-rw-r--r--. 1 root root 689 May 27 16:15 CentOS-Stream-NFV.repo
-rw-r--r--. 1 root root 724 May 27 16:15 CentOS-Stream-PowerTools.repo
-rw-r--r--. 1 root root 696 May 27 16:15 CentOS-Stream-RealTime.repo
-rw-r--r--. 1 root root 754 May 27 16:15 CentOS-Stream-ResilientStorage.repo
-rw-r--r--. 1 root root 1771 May 28 10:33 CentOS-Stream-Sources.repo
-rw-r--r--. 1 root root 289 May 28 09:54 vault.centos.org_centos_8-stream_extras_Source_extras-common_repodata_.repo


Above shows addition on last line because I ran the below command you suggested:

dnf --disablerepo=\* install http://mirror.centos.org/centos/8-strea ... noarch.rpm


Do I need to enable it? I tried doing this :

dnf config-manager --set-enabled vault.centos.org_centos_8-stream_extras_Source_extras-common_repodata_

That worked but when I try “yum update all” it gives error:


created by dnf config-manager from https://vault.centos.org/centos/8-strea ... Source/ext 7.5 kB/s | 8.1 kB 00:01

Errors during downloading metadata for repository 'vault.centos.org_centos_8-stream_extras_Source_extras-common_repodata_':
- Status code: 404 for https://vault.centos.org/centos/8-strea ... repomd.xml (IP: 13.226.39.98)
Error: Failed to download metadata for repo 'vault.centos.org_centos_8-stream_extras_Source_extras-common_repodata_': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Post Reply