After mirror selection for fastest downloads by mirrorsorcerer many specialized repos not found valid

Saw article to select faster download mirrors using “mirrorsorcerer”. Ran that and noted repo changes. Update today shows most of my specialized repos are not valid at new urls. See below:

(base) tom@mydesktop:~> sudo zypper patch
[sudo] password for root: 
Retrieving repository 'oss-update' metadata ....................................................[error]
Repository 'oss-update' is invalid.
[http-download.opensuse.org-1ca1690e|https://mirrorcache-us-west.opensuse.org/update/leap/$%7Breleasever%7D/oss/] Valid metadata not found at specified URL
History:
- [http-download.opensuse.org-1ca1690e|https://mirrorcache-us-west.opensuse.org/update/leap/$%7Breleasever%7D/oss/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'oss-update' because of the above error.
Retrieving repository 'oss' metadata ...........................................................[error]
Repository 'oss' is invalid.
[http-download.opensuse.org-1f61c7be|https://mirrorcache-us-west.opensuse.org/distribution/leap/$%7Breleasever%7D/repo/oss/] Valid metadata not found at specified URL
History:
- [http-download.opensuse.org-1f61c7be|https://mirrorcache-us-west.opensuse.org/distribution/leap/$%7Breleasever%7D/repo/oss/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'oss' because of the above error.
Retrieving repository 'leap 15.5 -- games' metadata ............................................[error]
Repository 'leap 15.5 -- games' is invalid.
[openSUSE_Leap_${releasever}|https://mirrorcache-us-west.opensuse.org/repositories/games:/tools/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}|https://mirrorcache-us-west.opensuse.org/repositories/games:/tools/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- games' because of the above error.
Retrieving repository 'leap 15.5 -- science' metadata ..........................................[error]
Repository 'leap 15.5 -- science' is invalid.
[openSUSE_Leap_${releasever}_1|https://mirrorcache-us-west.opensuse.org/repositories/science/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}_1|https://mirrorcache-us-west.opensuse.org/repositories/science/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- science' because of the above error.
Retrieving repository 'leap 15.5 -- education' metadata ........................................[error]
Repository 'leap 15.5 -- education' is invalid.
[openSUSE_Leap_${releasever}_2|https://mirrorcache-us-west.opensuse.org/repositories/Education/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}_2|https://mirrorcache-us-west.opensuse.org/repositories/Education/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- education' because of the above error.
Retrieving repository 'leap 15.5 -- geo' metadata ..............................................[error]
Repository 'leap 15.5 -- geo' is invalid.
[openSUSE_Leap_${releasever}_3|https://mirrorcache-us-west.opensuse.org/repositories/Application:/Geo/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}_3|https://mirrorcache-us-west.opensuse.org/repositories/Application:/Geo/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- geo' because of the above error.
Retrieving repository 'leap 15.5 -- electronics' metadata ......................................[error]
Repository 'leap 15.5 -- electronics' is invalid.
[openSUSE_Leap_${releasever}_4|https://mirrorcache-us-west.opensuse.org/repositories/electronics/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}_4|https://mirrorcache-us-west.opensuse.org/repositories/electronics/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- electronics' because of the above error.
Retrieving repository 'leap 15.5 -- graphics' metadata .........................................[error]
Repository 'leap 15.5 -- graphics' is invalid.
[openSUSE_Leap_${releasever}_5|https://mirrorcache-us-west.opensuse.org/repositories/graphics/$%7Breleasever%7D/] Valid metadata not found at specified URL
History:
- [openSUSE_Leap_${releasever}_5|https://mirrorcache-us-west.opensuse.org/repositories/graphics/$%7Breleasever%7D/] Repository type can't be determined.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'leap 15.5 -- graphics' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
Patch 'openSUSE-SLE-15.5-2024-1075-1' is optional. Use 'zypper in patch:openSUSE-SLE-15.5-2024-1075' to install it, or '--with-optional' to include all optional patches.
Resolving package dependencies...

The following item is locked and will not be changed by any action:
Available:
 Mesa-dri-nouveau

The following 20 packages are going to be upgraded:
 autofs glibc glibc-32bit glibc-devel glibc-devel-static glibc-extra glibc-info glibc-lang
 glibc-locale glibc-locale-base glibc-locale-base-32bit glibc-utils nscd openssh openssh-askpass-gnome
 openssh-clients openssh-common openssh-helpers openssh-server shim

The following 4 NEW patches are going to be installed:
 openSUSE-SLE-15.5-2024-1366 openSUSE-SLE-15.5-2024-1368 openSUSE-SLE-15.5-2024-1370
 openSUSE-SLE-15.5-2024-1375

20 packages to upgrade.
Overall download size: 37.2 MiB. Already cached: 0 B. After the operation, additional 11.2 KiB will be
used.

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
type or paste code here

Question is: Is this just a temporary thing to wait out? If not, how do I get back to original repos in an automated way or do I do it manually?

thanks, tom kosvic

Restore the /etc/zypp/repos.d/*.repo files from your backup.

This is no proper URL part for Leap….

The string you show was created by mirrorsorcerer. My original was working fine. It does not look right to me either.

mirrorsorcerer created backup files in /etc/zypp/repos.d. I think just removing the current repo file and replacing it with the backup should work. Else, I could just restore that directory from my last “backintime” backup. Either should work fine.

thanks, tom kosvic

The %7B and %7D are IMO correct URL encodings for { and } .
As such correct encoding for ${releasever} .

But it does not look as if zypper filled in the correct release string 15.5 .

I seems that you have several obvious options you know about. Then why ask?

My main question was whether this problem was a temporary issue and should wait for a solution or whether things were broken by mirrorsorcerer and I needed to fix them. Then, I just wanted confirmation that I was not missing something.

Normal file procedures did not work with these repo file names containing {release_ver} variable. Terminal said can’t recognize file name. I did the restore from “backintime” after moving old directory to new name. That worked fine.

Should I put out some cautionary note regarding mirrorsorcerer? If so where?

thanks, tom kosvic

I have noidea what you mean with “normal file procedures”. Please be more clear.

This is nowhere mentioned by nobody, nor is it somewhere in the listings you posted. We are talking about ${releasever} . Please be exact and precise when talking about computer problems. We do not need extra confusion.

Again, no idea what you are doing or try to communicate. As always, copy/paste the computer action, that will be much more understandable then your story telling.

Can you link this strange article?

Normal file procedures like rm did not work. The file name was copy/pasted from directory listing. I was root user. rm had problem with $releasever. See below:

mydesktop:/etc/zypp/repos_mirrorsorcerer.d # rm download.nvidia.com-$releasever.repo
rm: cannot remove 'download.nvidia.com-.repo': No such file or directory
mydesktop:/etc/zypp/repos_mirrorsorcerer.d #

I stand corrected and should have pasted this in and and stated name of $releasever variable correctly.
I couldn’t remove the files mirrorsorcerer got garbled up using terminal so I moved the /etc/zypp/repos.d directory to a new name and restored whole directory from backup.

tom kosvic

I have really no idea why you think there should be a file of that name???

When you want to know what is in that directory, then do an

ls -l

And yes, “Saw article” is just a variant of the infamous “I read on the Internet”.

mirrorsorcerer (obtained from opensuse repos) was mentioned here as one way to speed up zypper.
“7 handy tweaks in opensuse”.

That file name was pasted from ls -al listing from the directory containing the repo information. That directory was initially /etc/zypp/repos.d and it was moved to /etc/zypp/repos_mirrorsorcerer.d Look at your /etc/zypp/repos.d directory and see what you see for file names.

You could try cdn.opensuse.org instead of hardcoding to a nearest mirror like mirrorsorcerer does. For me it selected the Japanese mirrors as the closest, I’m nowhere near Japan though and there are much closer mirrors nearby which the cdn redirector points to.

This thread is morphing into a zypper thread but I concluded that based upon what i saw that download speed was insignificant in speeding up zypper’s btime to install. Zypper is slow due to the one-at-a-time install rather than multi-processing and download time is insignificant. I have several other linux in vms like arch, debian, and others. All that multitask are much faster than zypper. That is not a big deal to me though as I believe zypper has more elaborate command structure than the others.

henk@boven:~> ls -la /etc/zypp/repos.d
total 72
drwxr-xr-x  2 root root 4096 Feb 14 13:06 .
drwxr-xr-x 12 root root 4096 Feb 20 08:37 ..
-rw-r--r--  1 root root  207 Nov  4 15:34 backports-debug-update.repo
-rw-r--r--  1 root root  186 Nov  4 15:34 backports-update.repo
-rw-r--r--  1 root root  139 Nov  4 15:34 libdvdcss.repo
-rw-r--r--  1 root root  162 Nov  4 15:34 main-debug-update.repo
-rw-r--r--  1 root root  159 Nov  4 15:34 main-debug.repo
-rw-r--r--  1 root root  162 Nov  4 15:34 main-source.repo
-rw-r--r--  1 root root  155 Nov  4 15:34 main-update.repo
-rw-r--r--  1 root root  158 Nov  4 15:34 main.repo
-rw-r--r--  1 root root  173 Nov  4 15:34 non-oss-debug-update.repo
-rw-r--r--  1 root root  170 Nov  4 15:34 non-oss-debug.repo
-rw-r--r--  1 root root  174 Nov  4 15:34 non-oss-main.repo
-rw-r--r--  1 root root  173 Nov  4 15:34 non-oss-source.repo
-rw-r--r--  1 root root  167 Nov  4 15:34 non-oss-update.repo
-rw-r--r--  1 root root  152 Nov  4 15:34 packman.repo
-rw-r--r--  1 root root  176 Nov  4 15:34 sle-debug-update.repo
-rw-r--r--  1 root root  162 Nov  4 15:34 sle-update.repo
henk@boven:~> 

I am BTW very well aware of what I have as repos.

Here is what is in my repos.d directory.

mydesktop:/etc/zypp # ls -al repos.d
total 68
drwxr-xr-x  2 root root 4096 Apr 22 10:33 .
drwxr-xr-x 10 root root 4096 Apr 22 12:08 ..
-rw-r--r--  1 root root  182 Apr  9 12:22 download.nvidia.com-$releasever.repo
-rw-r--r--  1 root root  208 Apr  9 12:22 ftp.gwdg.de-openSUSE_Leap_$releasever_1.repo
-rw-r--r--  1 root root  173 Apr  9 12:22 http-download.opensuse.org-1ca1690e.repo
-rw-r--r--  1 root root  177 Apr  9 12:22 http-download.opensuse.org-1f61c7be.repo
-rw-r--r--  1 root root  197 Apr  9 12:22 opensuse-guide.org-openSUSE_Leap_$releasever.repo
-rw-r--r--  1 root root  199 Apr  9 12:22 openSUSE_Leap_${releasever}_1.repo
-rw-r--r--  1 root root  203 Apr  9 12:22 openSUSE_Leap_${releasever}_2.repo
-rw-r--r--  1 root root  204 Apr  9 12:22 openSUSE_Leap_${releasever}_3.repo
-rw-r--r--  1 root root  207 Apr  9 12:22 openSUSE_Leap_${releasever}_4.repo
-rw-r--r--  1 root root  201 Apr  9 12:22 openSUSE_Leap_${releasever}_5.repo
-rw-r--r--  1 root root  200 Apr  9 12:22 openSUSE_Leap_${releasever}.repo
-rw-r--r--  1 root root  177 Apr  9 12:22 repo-backports-update.repo
-rw-r--r--  1 root root  168 Apr  9 12:22 repo-non-oss.repo
-rw-r--r--  1 root root  159 Apr  9 12:22 repo-sle-update.repo
-rw-r--r--  1 root root  171 Apr  9 12:22 repo-update-non-oss.repo
mydesktop:/etc/zypp #

All the numbered files are specialized repos like graphics, education, science, etc. This works fine as far as I can tell. I am assuming there is nothing wrong with what I have. I think this got set up with the releasever variable in upgrade from 15.4 to 15.5

When I look at this in yast software manager configuration, releasever is replaced by 15.5 numbers.

Any reason to change this?

It’s ambiguous. Here’s one of mine:

# ls -gGl /etc/zypp/repos.d/*o
-rw-r--r-- 1 209 Oct 11  2023 /etc/zypp/repos.d/KDE3.repo
-rw-r--r-- 1 148 Oct 11  2023 /etc/zypp/repos.d/NonOSS.repo
-rw-r--r-- 1 138 Oct 11  2023 /etc/zypp/repos.d/OSS.repo
-rw-r--r-- 1 270 Jun  7  2023 /etc/zypp/repos.d/PackmanE.repo
-rw-r--r-- 1 124 Oct 11  2023 /etc/zypp/repos.d/Update.repo
-rw-r--r-- 1 229 Oct 11  2023 /etc/zypp/repos.d/UpdateBP.repo
-rw-r--r-- 1 140 Oct 11  2023 /etc/zypp/repos.d/UpdateNonOSS.repo
-rw-r--r-- 1 130 Oct 11  2023 /etc/zypp/repos.d/UpdateSLE.repo
-rw-r--r-- 1 253 Jun  7  2023 /etc/zypp/repos.d/X11XOrg.repo
-rw-r--r-- 1 192 Feb  8  2023 /etc/zypp/repos.d/openh264.repo
#

For a useful alternative that isn’t several times wider than the viewspace here, try inxi -r.

A way more usefull, informative and well known alternative is zypper lr -d in preformatted text tags </>.

1 Like