Zypper dup warning "problem retrieving the repository index file"

Hi all,

sudo zypper dup started returning this warning:

[|] Parse error: repoindex.xml[1] Document is empty

I dunno exactly when it started, I tried to add a repo recently but eventually failed, and I wonder if this is the result of some left overs in zypper repos config, or if the issue comes from somewhere else.

Here’s the output of zypper repos:

 andrea  ~  zypper repos
Repository priorities in effect:                           (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) :  8 repositories

#  | Alias               | Name                             | Enabled | GPG Check | Refresh
---+---------------------+----------------------------------+---------+-----------+--------
 1 | Insync              | Insync                           | Yes     | (r ) Yes  | Yes
 2 | graphics_darktable  | Darktable (openSUSE_Tumbleweed)  | Yes     | (r ) Yes  | No
 3 | home_pzz            | home:pzz (openSUSE_Tumbleweed)   | Yes     | (r ) Yes  | Yes
 4 | network_utilities   | Network Utilities (openSUSE_Fa-> | Yes     | (r ) Yes  | No
 5 | openSUSE-20231028-0 | openSUSE-20231028-0              | No      | ----      | ----
 6 | packman             | Packman                          | Yes     | (r ) Yes  | Yes
 7 | repo-debug          | openSUSE-Tumbleweed-Debug        | No      | ----      | ----
 8 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss      | Yes     | (r ) Yes  | Yes
 9 | repo-openh264       | Open H.264 Codec (openSUSE Tum-> | Yes     | (r ) Yes  | Yes
10 | repo-oss            | openSUSE-Tumbleweed-Oss          | Yes     | (r ) Yes  | Yes
11 | repo-source         | openSUSE-Tumbleweed-Source       | No      | ----      | ----
12 | repo-update         | openSUSE-Tumbleweed-Update       | Yes     | (r ) Yes  | Yes

Any ideas?

Thanks! :slight_smile:

1 Like

That is in general useless because the output does not contain the URLs but only the Aliases and Names that are local to your system. So we still do not know which repositories you use.
Better is e.g.

zypper rl -d

Small typo there :sweat_smile:
@andrea.ippo Please provide the output of zypper lr -Ed

1 Like

This problem seems caused by the already solved bug, when adding a repo via YaST, it added a service instead of a repo.

You need to go into YaST software → Repositories → change view to „All services“

Remove the broken services.

No. We don‘t need redacted repo lists. The problems are often caused by disabled repos. So always show the unredacted output via

zypper lr -d
3 Likes

Indeed this was the culprit, thanks!

1 Like

The output looks the same, but thanks all the same! :slight_smile:

As mentioned in my previous reply, @hui 's guess was correct

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.