When using zypper install, there's problem retrieving the repository index file for service

Refreshing service 'service_1'.
Problem retrieving the repository index file for service 'service_1':
File './repo/repoindex.xml' not found on medium 'https://download.opensuse.org/opensuse/update/tumbleweed?cookies=0'
Check if the URI is valid and accessible.
Refreshing service 'service_2'.
Problem retrieving the repository index file for service 'service_2':
File './repo/repoindex.xml' not found on medium 'https://download.opensuse.org/opensuse/tumbleweed/repo/oss?cookies=0'
Check if the URI is valid and accessible.
Refreshing service 'service_3'.
Problem retrieving the repository index file for service 'service_3':
File './repo/repoindex.xml' not found on medium 'https://download.opensuse.org/opensuse/tumbleweed/repo/non-oss?cookies=0'

just figured it out and the solution is simple: remove all the files under /etc/zypp/services.d , and zypp should be working again.
In essence, services consist of repositories, akin to patterns and packages. A fresh installation of Leap/Tumbleweed typically does not utilise services.

I’m glad you found a solution for your situation - but I would caution that this is probably not a good “generic” solution for everyone who has this issue - it really depends on what’s in the config files in /etc/zyppservices.d for any individual system, and how they ended up there in the first place.

4 Likes

Actual Tumbleweed/Leap snapshots (installation images) contain at least one service (openSUSE). If Nvidia hardware is used, a second service is existing (nvidia).

This is because of the new CDN standard. If you delete these services, you delete ALL openSUSE standard repos and the Nvidia one. You won‘t be able to update your system any longer or install any new software.

The problem with the additional broken services was caused by a bug which is already resolved.

So Hendersj advice is good to not generalize this topic and don‘t blindly follow the TOs recommendation as you might break your system.

5 Likes

DO NOT BLINDLY FOLLOW MY ADVICE AS IT MAY BREAK YOUR SYSTEM
thanks @hendersj and @hui

2 Likes

Hah, love your sense of humour, @olafsheeran !!! :smiley:

1 Like