Failed to retrieve new repository metadata for openSUSE service repository

The problem is in the “?cookies=0” token in File './repo/repoindex.xml' not found on medium 'http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss?cookies=0'
I don’t know where it comes from, likely from an aborted service refresh?
The right address from the openSUSE-repos package is:

url="%{disturl}/distribution/%{distsub}/%{distver}/repo/non-oss?mediahandler=curl2"

I would prefer to fix the openSUSE-repos service rather than manually adding and editing repos, but it is your system and your choice.

I removed openSUSE-repos-Leap, manually added the repos, changed to $releasever and refreshed, but the result seems to be the same:

LatitudeW:/home/winfried # sed -i 's/15.5/${releasever}/g' /etc/zypp/repos.d/*.repo
LatitudeW:/home/winfried # zypper --releasever=15.6 refresh
Warning: Enforced setting: $releasever=15.6
Looking for gpg keys in repository update-backports.
  gpgkey=https://download.opensuse.org/update/leap/15.6/backports/repodata/repomd.xml.key
Retrieving repository 'update-backports' metadata .......................................................................................................................................................................................................................[done]
Building repository 'update-backports' cache ............................................................................................................................................................................................................................[done]
Looking for gpg keys in repository update-non-oss.
  gpgkey=https://download.opensuse.org/update/leap/15.6/non-oss/repodata/repomd.xml.key
Retrieving repository 'update-non-oss' metadata .........................................................................................................................................................................................................................[done]
Building repository 'update-non-oss' cache ..............................................................................................................................................................................................................................[done]
Looking for gpg keys in repository update-oss.
  gpgkey=https://download.opensuse.org/update/leap/15.6/oss/repodata/repomd.xml.key
Retrieving repository 'update-oss' metadata .............................................................................................................................................................................................................................[done]
Building repository 'update-oss' cache ..................................................................................................................................................................................................................................[done]
Repository 'update-sle' is up to date.                                                                                                                                                                                                                                         
Repository 'VPN (openSUSE_Leap_15.6)' is up to date.                                                                                                                                                                                                                           
Repository 'packman' is up to date.                                                                                                                                                                                                                                            
Looking for gpg keys in repository repo-non-oss.
  gpgkey=https://download.opensuse.org/distribution/leap/15.6/repo/non-oss/repodata/repomd.xml.key
Retrieving repository 'repo-non-oss' metadata ...........................................................................................................................................................................................................................[done]
Building repository 'repo-non-oss' cache ................................................................................................................................................................................................................................[done]
Retrieving repository 'repo-openh264' metadata ..........................................................................................................................................................................................................................[done]
Building repository 'repo-openh264' cache ...............................................................................................................................................................................................................................[done]
Looking for gpg keys in repository repo-oss.
  gpgkey=https://download.opensuse.org/distribution/leap/15.6/repo/oss/repodata/repomd.xml.key
Retrieving repository 'repo-oss' metadata ...............................................................................................................................................................................................................................[done]
Building repository 'repo-oss' cache ....................................................................................................................................................................................................................................[done]
All repositories have been refreshed.
LatitudeW:/home/winfried # zypper up
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.
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 | packman          | packman                  | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/         | 
3 | repo-non-oss     | repo-non-oss             | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.6/repo/non-oss           | 
4 | repo-openh264    | repo-openh264            | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap                           | 
5 | repo-oss         | repo-oss                 | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.6/repo/oss               | 
6 | update-backports | update-backports         | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/update/leap/15.6/backports                    | 
7 | update-non-oss   | update-non-oss           | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/update/leap/15.6/non-oss                      | 
8 | update-oss       | update-oss               | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.opensuse.org/update/leap/15.6/oss                          | 
9 | update-sle       | update-sle               | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/update/leap/15.6/sle                                | 

I think I would prefer to use the openSUSE-repos service, but right now I want to get back to a stable and error-free situation.
I don’t know how to change the url of an openSUSE-repos package.

Simply clean up the directories under /etc/zypp/services.d and /etc/zypp/repos.d/ from any traces of the services…(the package which provides the service is already uninstalled).
Perform a sudo zypper clean -a

Afterwards, it should work to install and refresh the services again…

Why on earth not use the opensuse-migration-tool? I’ve done a dozen upgrades 15.6 → 16.0 without issues. After that the OP may have to readd the VPN and Packman repos. And that is it.

According to this claim he already tried…

1 Like

OK, thanks, missed that.

Well, because that tool doesn’t work right now.
So I first want to have 15.6 ‘repaired’ and up to date. Then I can prepare the upgrade to 16.0.

Sorry for the pause in responding; YES, that seems to do the trick.
Zypper is updating now.
I can try to change to openSUSE-repos service again, now it’s all clean, and then I can prepare and execute the upgrade to 16.0 (I hope).

So far thank you all for your help. Without all your expert help I couldn’t have fixed this!