I am getting a 404 downloading extras on Rocky 9 x86_64. The relevant bits are below. Any advice is well appreciated. THe google searches done so far in re changes to dnf.conf or yum repos did not resolve.
Command example:
[vizteksupport@cntv501exadb01 ~]$ sudo dnf -y install sysstat
Rocky Linux 9 - Extras 191 B/s | 146 B 00:00
Errors during downloading metadata for repository ‘extras’:
That URL contains string “vault”, which probably should not be there. Wrong URL.
First, dnf.conf is not likely to have any URL.
Second, this one points to fedoraproject.org, and “BaseOS” within, so is not related.
Perhaps dnf repolist (or dnf repolist all) tells more about what you have.
Also, grep -r extras /etc/yum.repos.d should (in coarse manner) list repo definition files of interest.
Choose one of the correct versions here: Index of /vault/rocky/ since it’s either 9.0, 9.1, 9.2 or 9.3. The value on it’s own is most likely what you have from the main mirrors which assume the latest release hence why on the vault you have to be more specific.
Although in all honesty, why are you trying to use the vault when it would be better using the live mirrors.
There is no such thing as vault/rocky/9 and there never will be. Why are you trying to use the vault? You are recommended to use pub/rocky/9 or the mirror lists to always have the most up to date packages.
The better question is why are you trying to use the vault? The repodata is not available for 9.3 in the vault yet and will not be available until we release 9.4. What exactly are you trying to accomplish?
Something wrong with the URL. It is possible to revert to the baseurl:
sed --in-place=mybk2 '{s/^mirrorlist/#mirrorlist/; s/^#baseurl/baseurl/; }' /etc/yum.repos.d/rocky-extras.repo
Which should be ok now that there is no “vault” in it. However, I would check what
dnf --disablerepo=extras reinstall rocky-repos
says that it would do. If it just that package, then let it do what it does.
That should store the ‘rocky-extras.repo’ from package as /etc/yum.repos.d/rocky-extras.repo.rpmnew (since the current file is modified).
Then one can replace the “bad copy”: