Some of the repositories ‘owned’ by the openSUSE service can no longer be used for updates. I have a work-around for updates by disabling these repositories and adding new repositories that do work with zypper ref and zypper up, but that prevents me upgrading to Leap 16.
The code below shows the behaviour for one of the troublesome repos (4), which I temporarily enabled and where I disabled repo 14 (which does work with zypper ref and zypper up.
LatitudeW:/home/winfried # zypper lr -d
# | Alias | Name | Enabled | GPG Check | Refresh | Keep | Priority | Type | URI | Service
---+-----------------------------+-------------------------------------------------+---------+-----------+---------+------+----------+--------+-----------------------------------------------------------------------------+---------
1 | network_vpn | VPN (openSUSE_Leap_15.6) | Yes | (r ) Yes | Yes | - | 99 | rpm-md | https://download.opensuse.org/repositories/network:/vpn/openSUSE_Leap_15.6/ |
2 | openSUSE:repo-non-oss | repo-non-oss (15.6) | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64 | openSUSE
3 | openSUSE:repo-non-oss-debug | repo-non-oss-debug (15.6) | No | ---- | ---- | - | 99 | N/A | http://cdn.opensuse.org/debug/distribution/leap/15.6/repo/non-oss/x86_64 | openSUSE
4 | openSUSE:repo-openh264 | repo-openh264 (15.6) | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap_16 | openSUSE
5 | openSUSE:repo-oss | repo-oss (15.6) | No | ---- | ---- | - | 99 | rpm-md | http://cdn.opensuse.org/distribution/leap/15.6/repo/oss/x86_64 | openSUSE
6 | openSUSE:repo-oss-debug | repo-oss-debug (15.6) | No | ---- | ---- | - | 99 | N/A | http://cdn.opensuse.org/debug/distribution/leap/15.6/repo/oss/x86_64 | openSUSE
7 | openSUSE:repo-oss-source | repo-oss-source (15.6) | No | ---- | ---- | - | 99 | N/A | http://cdn.opensuse.org/source/distribution/leap/15.6/repo/oss | openSUSE
8 | openSUSE:update-backports | update-backports | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/update/leap/15.6/backports |
9 | packman | packman | Yes | (r ) Yes | No | - | 99 | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/ |
10 | rep-non-oss | rep-non-oss | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss |
11 | rep-oss | rep-oss | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/distribution/leap/15.6/repo/oss |
12 | repo-backports-debug-update | Update repository of openSUSE Backports (Debug) | No | ---- | ---- | - | 99 | N/A | http://download.opensuse.org/update/leap/15.6/backports_debug/ |
13 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/ |
14 | update-non-oss | update-non-oss | No | ---- | ---- | - | 99 | rpm-md | http://cdn.opensuse.org/update/leap/15.6/non-oss |
15 | update-oss | update-oss | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/update/leap/15.6/oss |
16 | update-sle | update-sle | Yes | (r ) Yes | Yes | - | 99 | rpm-md | http://cdn.opensuse.org/update/leap/15.6/sle |
LatitudeW:/home/winfried # zypper ref
Repository 'update-backports' is up to date.
Repository 'Update repository of openSUSE Backports' is up to date.
Repository 'update-oss' is up to date.
Repository 'update-sle' is up to date.
Repository 'VPN (openSUSE_Leap_15.6)' is up to date.
Retrieving repository 'repo-non-oss (15.6)' metadata .................................................................................................................................................................................[error]
Repository 'repo-non-oss (15.6)' is invalid.
[openSUSE:repo-non-oss|http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Failed to retrieve new repository metadata.
History:
- [openSUSE:repo-non-oss|http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss/x86_64] Repository type can't be determined.
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'repo-non-oss (15.6)' because of the above error.
Repository 'repo-openh264 (15.6)' is up to date.
Repository 'packman' is up to date.
Repository 'rep-non-oss' is up to date.
Repository 'rep-oss' is up to date.
Some of the repositories have not been refreshed because of an error.
I would like to fix this properly so that I can upgrade to Leap 16.0.
Also, the update repos are not ‘openSUSE:’ (on another computer these are openSUSE:update-etc.). Ik would like to have a uniform (and troublefree) set of repositories.
So far I have not been able to modify the openSUSE:repos, help would be greatly appreciated.
I do not think you have a correct list of repos for Leap 15.6. It looks as if you have still the old 15.5 set and the new 15.6 set added. They looks all as being 15.6 because all use the $releasever functionality. Look e.g. at #5 and #11, both the standard OSS repo.
But please wait for 15.6 users (I am not one) for more detailed information.
The O/S has been upgraded with $releasever and zypper dup since the first install when I bought the computer (Leap15.3 or 15.4). Since the repo-problem appeared, I have tried (and messed up) a lot in the repo settings.
I would love to be able to to fully restore to Leap 15.6 repos (plus one or two manually added non-standard repos).
The non-working repo in your example is #2 and not #4. It has an “/x86_64” appended in the URI, which is not correct, since there is no repodata there.
That is odd, since the repo is managed by the openSUSE service and the repo definition is defined by the openSUSE-repos-Leap-xxx package (unless you manually messed it up).
Please check what you have installed:
zypper se -si openSUSE-repos-Leap
That should read openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1: if not so, install or force reinstall that package and try again.
OrsoBruno, that gave something - and added to the problem:
LatitudeW:/home/winfried # zypper se -si openSUSE-repos-Leap
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
---+---------------------+---------+----------------------------+--------+------------------
i+ | openSUSE-repos-Leap | package | 20250714.a450212-lp160.3.1 | x86_64 | (System Packages)
LatitudeW:/home/winfried # zypper in -f $(rpm -qa | grep -iE 'openSUSE-repos-Leap' )
Refreshing service 'openSUSE'.
Refreshing service 'openSUSE:repo-non-oss'.
Problem retrieving the repository index file for service 'openSUSE:repo-non-oss':
File './repo/repoindex.xml' not found on medium 'http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss?cookies=0'
Check if the URI is valid and accessible.
As you can see, this is a Leap 16 package, so are we dealing with a Leap 15.6 install (as in the thread tag) or a Leap 16.0 one? Or a failed upgrade attempt?
OK, so the correct package is in your repo #15 which should work.
Disable all repos with a x86_64 in their URI.
Uninstall the openSUSE-repos-Leap in the Leap 16 version, then:
zypper in -f openSUSE-repos-Leap-20250604.94835c9-lp156.2.9
should fix the repo list (just post zypper lr -dafterwards for confirmation if you are unsure).
Well, uninstalling succeeded, bit the installing did not:
LatitudeW:/home/winfried # zypper rm $(rpm -qa | grep -iE 'openSUSE-repos-Leap' )
Reading installed packages...
Resolving package dependencies...
The following package is going to be REMOVED:
openSUSE-repos-Leap
1 package to remove.
Package install size change:
| 0 B required by packages that will be installed
-1.8 KiB | - 1.8 KiB released by packages that will be removed
Backend: classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-openh264'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-source'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-non-oss'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-non-oss-debug'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-debug'
Service 'openSUSE' not found by alias, number or URI.
(1/1) Removing: openSUSE-repos-Leap-20250714.a450212-lp160.3.1.x86_64 ...................................................................................................................................................................................................[done]
LatitudeW:/home/winfried # zypper ref
Repository 'update-backports' is up to date.
Repository 'Update repository of openSUSE Backports' is up to date.
Repository 'update-non-oss' is up to date.
Repository 'update-oss' is up to date.
Repository 'update-sle' is up to date.
Repository 'VPN (openSUSE_Leap_15.6)' is up to date.
Repository 'packman' is up to date.
Repository 'rep-non-oss' is up to date.
Repository 'rep-oss' is up to date.
All repositories have been refreshed.
LatitudeW:/home/winfried # zypper in -f openSUSE-repos-Leap-20250604.94835c9-lp156.2.9
Refreshing service 'openSUSE:repo-non-oss'.
Problem retrieving the repository index file for service 'openSUSE:repo-non-oss':
File './repo/repoindex.xml' not found on medium 'http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss?cookies=0'
Check if the URI is valid and accessible.
Thank you, that helped. Now I have an unexpected exception:
LatitudeW:/home/winfried # zypper --no-refresh in -f openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1
Loading repository data...
Reading installed packages...
Forcing installation of 'openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64' from repository 'update-oss'.
Resolving package dependencies...
The following package is suggested, but will not be installed:
openSUSE-repos-Leap-NVIDIA
The following NEW package is going to be installed:
openSUSE-repos-Leap
1 new package to install.
Package download size: 18.8 KiB
Package install size change:
| 2.8 KiB required by packages that will be installed
2.8 KiB | - 0 B released by packages that will be removed
Backend: classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64 (update-oss) (1/1), 18.8 KiB
Retrieving: openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64.rpm ....................................................................................................................................................................................[done (18.8 KiB/s)]
Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
Content of repo-oss.repo will be newly managed by zypp-services.
Storing old copy as /etc/zypp/repos.d/repo-oss.repo.rpmsave
Content of repo-non-oss.repo will be newly managed by zypp-services.
Storing old copy as /etc/zypp/repos.d/repo-non-oss.repo.rpmsave
(1/1) Installing: openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64 ...............................................................................................................................................................................................[done]
%posttrans(openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64) script output:
Adding service 'openSUSE'...
Service 'openSUSE' has been successfully added.
URI : dir:/usr/share/zypp/local/service/openSUSE
Enabled : Yes
Autorefresh : Yes
Refreshing service 'openSUSE'.
Unexpected exception.
[openSUSE:update-backports|http://cdn.opensuse.org/update/leap/15.6/backports?mediahandler=curl2] Repository already exists.
Please file a bug report about this.
See http://en.opensuse.org/Zypper/Troubleshooting for instructions.
warning: %posttrans(openSUSE-repos-Leap-20250604.94835c9-lp156.2.9.1.x86_64) scriptlet failed, exit status 1
Running post-transaction scripts ........................................................................................................................................................................................................................................[done]
Yes, it is (was?) repo #8 that you manually added. Nevertheless, you should have all 15.6 repos now, maybe disable/remove duplicates; the openSUSE-service should refresh at every install, update, upgrade…