Repo problem on update

Who can help?

I was just updating my system and got a concerning warning message that I’m not familiar with. A websearch didn’t yield an obvious answer.

Here is the error:

sudo zypper dup
[sudo] password for root: 
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Building repository 'repo-non-oss' cache ...............................................................................................................................................................................................................................[done]
Error building the cache:
[openSUSE:repo-non-oss|http://cdn.opensuse.org/tumbleweed/repo/non-oss] Failed to cache repo (1).
History:
 - 'repo2solv' '-o' '/var/cache/zypp/solv/openSUSE:repo-non-oss/solv' '-X' '/var/cache/zypp/raw/openSUSE:repo-non-oss'
   /var/cache/zypp/raw/openSUSE:repo-non-oss/repodata/5605832130b78c8c6e0685d7e8d9f3bff412368daa73fa298e4c98bc4118781eab4c35834c69da8a816dc348f018fcbedd2789db978cc80803c1b298d336544f-primary.xml.zst: repo_rpmmd: Document is empty
    at line 1:1
   Command exited with status 1.
Warning: Skipping repository 'repo-non-oss' because of the above error.
Building repository 'repo-oss' cache ...................................................................................................................................................................................................................................[done]
Error building the cache:
[openSUSE:repo-oss|http://cdn.opensuse.org/tumbleweed/repo/oss] Failed to cache repo (1).
History:
 - 'repo2solv' '-o' '/var/cache/zypp/solv/openSUSE:repo-oss/solv' '-X' '/var/cache/zypp/raw/openSUSE:repo-oss'
   /var/cache/zypp/raw/openSUSE:repo-oss/repodata/7674d607ab3a57f5eed74a46b508d2b4b2a18bb06a37b775468e9587de2de8b2c1f4ef415ea109a03a32f2fc9f05ae360acf5552e125b4471e329f0bfbf20c5d-primary.xml.zst: repo_rpmmd: Document is empty
    at line 1:1
   Command exited with status 1.
Warning: Skipping repository 'repo-oss' because of the above error.
Some of the repositories have not been refreshed because of an error.

    dist-upgrade: Due to the treatment of orphaned packages dist-upgrade depends on a proper
    repository setup more than any other command. It must not continue if enabled repositories fail
    to refresh. This may severely damage the system. If a failing repository is actually not needed,
    it must be disabled. See 'man zypper' for more information about this command.

Here is the list of repos:

zypper lr
Repository priorities in effect:                        (See 'zypper lr -P' for details)
      70 (raised priority)  :  1 repository
      99 (default priority) :  5 repositories

# | Alias                      | Name              | Enabled | GPG Check | Refresh
--+----------------------------+-------------------+---------+-----------+--------
1 | NVIDIA:repo-non-free       | repo-non-free     | Yes     | (r ) Yes  | Yes
2 | openSUSE:repo-non-oss      | repo-non-oss      | Yes     | (r ) Yes  | Yes
3 | openSUSE:repo-openh264     | repo-openh264     | Yes     | (r ) Yes  | Yes
4 | openSUSE:repo-oss          | repo-oss          | Yes     | (r ) Yes  | Yes
5 | openSUSE:repo-oss-debug    | repo-oss-debug    | No      | ----      | ----
6 | openSUSE:repo-oss-source   | repo-oss-source   | No      | ----      | ----
7 | openSUSE:update-tumbleweed | update-tumbleweed | Yes     | (r ) Yes  | Yes
8 | packman                    | Packman           | Yes     | (r ) Yes  | Yes

As of this writing the mirrors are synchronizing to the new snapshot, maybe waiting a few hours can fix it?

1 Like

As an aside.
This does not tell us (and you) the most important element of a repo: where is it? In other words the URLs are missing.
Better next time do something like

zypper lr -d
1 Like

Here is the output for that command. Thanks for the guidance:

zypper lr -d
# | Alias                      | Name              | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                     | Service
--+----------------------------+-------------------+---------+-----------+---------+------+----------+--------+---------------------------------------------------------+---------
1 | NVIDIA:repo-non-free       | repo-non-free     | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed         | NVIDIA
2 | openSUSE:repo-non-oss      | repo-non-oss      | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/non-oss         | openSUSE
3 | openSUSE:repo-openh264     | repo-openh264     | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed | openSUSE
4 | openSUSE:repo-oss          | repo-oss          | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed/repo/oss             | openSUSE
5 | openSUSE:repo-oss-debug    | repo-oss-debug    | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/debug/tumbleweed/repo/oss       | openSUSE
6 | openSUSE:repo-oss-source   | repo-oss-source   | No      | ----      | ----    | -    |   99     | N/A    | http://cdn.opensuse.org/source/tumbleweed/repo/oss      | openSUSE
7 | openSUSE:update-tumbleweed | update-tumbleweed | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://cdn.opensuse.org/update/tumbleweed               | openSUSE
8 | packman                    | Packman           | Yes     | (r ) Yes  | Yes     | -    |   70     | rpm-md | https://ftp.fau.de/packman//suse/openSUSE_Tumbleweed/   | 

I just tried again and the problem is persistent. It looks like it is more than the synchronizing. Can you or anyone else help make sense of the repos?

@rgietzen what happens if you try zypper -vvv ref -f you should see the mirrors your hitting for the data.

1 Like

Here is the output for that command. I’m honestly not sure what I’m supposed to look for in there:

sudo zypper -vvv ref -f
[sudo] password for root: 
Verbosity: 3
Initializing Target
Specified repositories: 
Forcing raw metadata refresh
Retrieving: http://cdn.opensuse.org/update/tumbleweed/repodata/repomd.xml ...........................[done]
Looking for gpg keys in repository update-tumbleweed.
  gpgkey=http://cdn.opensuse.org/update/tumbleweed/repodata/repomd.xml.key
Retrieving: http://cdn.opensuse.org/update/tumbleweed/repodata/repomd.xml.key ...........[done (1.6 KiB/s)]
Retrieving: http://cdn.opensuse.org/update/tumbleweed/repodata/repomd.xml.asc .............[done (827 B/s)]
  Repository:       update-tumbleweed
  Key Fingerprint:  AD48 5664 E901 B867 051A B15F 35A2 F86E 29B7 00A4
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 4096
  Key Created:      Mon 20 Jun 2022 10:03:14 AM EDT
  Key Expires:      Fri 19 Jun 2026 10:03:14 AM EDT
  Rpm Name:         gpg-pubkey-29b700a4-62b07e22
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/update/tumbleweed/repodata/043bd0[done (4.6 KiB/s)]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/update/tumbleweed/repodata/9920cd27511d0780c1[done]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/update/tumbleweed/repodata/1c5cd8e33993bd592a[done]
Retrieving repository 'update-tumbleweed' metadata ..................................................[done]
Forcing building of repository cache
Building repository 'update-tumbleweed' cache .......................................................[done]
Forcing raw metadata refresh
Retrieving: https://download.nvidia.com/opensuse/tumbleweed/repodata/repomd.xml .........[done (1.9 KiB/s)]
Retrieving: https://download.nvidia.com/opensuse/tumbleweed/repodata/repomd.xml.asc .......[done (836 B/s)]
  Repository:       repo-non-free
  Key Fingerprint:  2FB0 3195 DECD 4949 2BD1 C17A B1D0 D788 DB27 FD5A
  Key Name:         NVIDIA Linux Driver Team <linux-bugs@nvidia.com>
  Key Algorithm:    RSA 4096
  Key Created:      Thu 14 Apr 2022 06:04:01 PM EDT
  Key Expires:      (does not expire)
  Rpm Name:         gpg-pubkey-db27fd5a-62589a51
Retrieving: https://download.nvidia.com/opensuse/tumbleweed/repodata/fd5392f4041e9853dd8[done (96.0 KiB/s)]
Retrieving: https://download.nvidia.com/opensuse/tumbleweed/repodata/susedata.xml.gz ...[done (16.0 KiB/s)]
Retrieving repository 'repo-non-free' metadata ......................................................[done]
Forcing building of repository cache
Building repository 'repo-non-free' cache ...........................................................[done]
Forcing raw metadata refresh
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/non-oss/media.1/media .................[done (109 B/s)]
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml .....................[done]
Looking for gpg keys in repository repo-non-oss.
  gpgkey=http://cdn.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key .................[done]
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.asc .......[done (827 B/s)]
  Repository:       repo-non-oss
  Key Fingerprint:  AD48 5664 E901 B867 051A B15F 35A2 F86E 29B7 00A4
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 4096
  Key Created:      Mon 20 Jun 2022 10:03:14 AM EDT
  Key Expires:      Fri 19 Jun 2026 10:03:14 AM EDT
  Rpm Name:         gpg-pubkey-29b700a4-62b07e22
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/non-oss/repodata/[done (2.6 KiB/s)]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/non-oss/repodata/24edaf5f1096[done]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/non-oss/repodata/5605832130b7[done]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/non-oss/repodata/aa2698206852[done]
Retrieving repository 'repo-non-oss' metadata .......................................................[done]
Forcing building of repository cache
Building repository 'repo-non-oss' cache ............................................................[done]
Forcing raw metadata refresh
Retrieving: http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/repodata/repomd.xml .[done (2.9 KiB/s)]
Retrieving: http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/repodata/repomd.xml.asc[done (827 B/s)]
  Repository:       repo-openh264
  Key Fingerprint:  AD48 5664 E901 B867 051A B15F 35A2 F86E 29B7 00A4
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 4096
  Key Created:      Mon 20 Jun 2022 10:03:14 AM EDT
  Key Expires:      Fri 19 Jun 2026 10:03:14 AM EDT
  Rpm Name:         gpg-pubkey-29b700a4-62b07e22
Retrieving: http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/repodata/507906ef353[done (16.7 KiB/s)]
Retrieving: http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed/repodata/eba2ab3157b[done (11.4 KiB/s)]
Retrieving repository 'repo-openh264' metadata ......................................................[done]
Forcing building of repository cache
Building repository 'repo-openh264' cache ...........................................................[done]
Forcing raw metadata refresh
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/oss/media.1/media ......................[done (93 B/s)]
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml .........................[done]
Looking for gpg keys in repository repo-oss.
  gpgkey=http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key .....................[done]
Retrieving: http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.asc ...........[done (827 B/s)]
  Repository:       repo-oss
  Key Fingerprint:  AD48 5664 E901 B867 051A B15F 35A2 F86E 29B7 00A4
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 4096
  Key Created:      Mon 20 Jun 2022 10:03:14 AM EDT
  Key Expires:      Fri 19 Jun 2026 10:03:14 AM EDT
  Rpm Name:         gpg-pubkey-29b700a4-62b07e22
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/oss/repodata/e20b[done (7.1 MiB/s)]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/oss/repodata/6490[done (3.5 MiB/s)]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/oss/repodata/06a00321035620d2[done]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/oss/repodata/767[done (16.0 MiB/s)]
Retrieving: http://opensuse-mirror-gce-us.susecloud.net/tumbleweed/repo/oss/repodata/11d1[done (6.2 MiB/s)]
Retrieving repository 'repo-oss' metadata ...........................................................[done]
Forcing building of repository cache
Building repository 'repo-oss' cache ................................................................[done]
Skipping disabled repository 'repo-oss-debug'
Skipping disabled repository 'repo-oss-source'
Forcing raw metadata refresh
Retrieving: https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/repodata/repomd.xml .....[done (1.3 KiB/s)]
Looking for gpg keys in repository Packman.
  gpgkey=https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/repodata/repomd.xml.key
Retrieving: https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/repodata/repomd.xml.key .[done (1.7 KiB/s)]
Retrieving: https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/repodata/repomd.xml.asc ...[done (836 B/s)]
  Repository:       Packman
  Key Fingerprint:  F887 5B88 0D51 8B6B 8C53 0D13 45A1 D067 1ABD 1AFB
  Key Name:         PackMan Project (signing key) <packman@links2linux.de>
  Key Algorithm:    RSA 4096
  Key Created:      Tue 03 Sep 2024 04:21:04 PM EDT
  Key Expires:      Thu 03 Sep 2026 04:20:39 PM EDT
  Rpm Name:         gpg-pubkey-1abd1afb-66d76fb0
Retrieving: https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/repodata/primary.xml.gz .[done (1.2 MiB/s)]
Retrieving repository 'Packman' metadata ............................................................[done]
Forcing building of repository cache
Building repository 'Packman' cache .................................................................[done]
All repositories have been refreshed.

@rgietzen so, try zypper -vvv dup

1 Like

I think just checking for the mirrors fixed it. Because after running that command I used Discover, GUI approach to do the update and it was successful.

But just in case more action is needed, here is the results of that command you suggested:

sudo zypper -vvv dup
[sudo] password for root: 
Verbosity: 3
Initializing Target
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Checking whether to refresh metadata for repo-non-free
Checking whether to refresh metadata for repo-non-oss
Checking whether to refresh metadata for repo-openh264
Checking whether to refresh metadata for repo-oss
Checking whether to refresh metadata for update-tumbleweed
Checking whether to refresh metadata for Packman
Loading repository data...
Reading installed packages...
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Computing distribution upgrade...
Force resolution: No
Computing upgrade...

The following 13 package updates will NOT be installed:
  ffmpeg-7              
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libavcodec61          
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libavdevice61         
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libavfilter10         
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libavformat61         
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libavutil59           
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libnvidia-egl-wayland1
    1.1.19-49.7           x86_64  repo-non-free  obs://build.suse.de/Proprietary:X11:Drivers
  libOpenCL1            
    2.3.3-63.5            x86_64  repo-non-free  obs://build.suse.de/Proprietary:X11:Drivers
  libOpenCL1-32bit      
    2.3.3-63.3            x86_64  repo-non-free  obs://build.suse.de/Proprietary:X11:Drivers
  libpostproc58         
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libswresample5        
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libswscale8           
    7.1.1-1699.9.pm.9     x86_64  Packman        http://packman.links2linux.de
  libvdpau_nouveau      
    25.1.6-1699.421.pm.4  x86_64  Packman        http://packman.links2linux.de
Nothing to do.

THat is nonsense IMO. You run Tumbleweed, thus you update always with zypper dup. What is the need to start some GUI after that?

1 Like

Discover should only be used for updating/installation of Flatpaks.

1 Like

Discover occasionally generates a notification icon and my slight OCD tendencies mean I always click on it. I wasn’t aware that it shouldn’t be used. Thanks for the info.

OK. After release of Plasma6 I started testing Discover for the dup. If the solver does not find any issues it does the job fine, no difference with the compared zypper dup. In case it does, it will simply not execute the dup, but fail with a message.
I also tested dup with Myrlyn, and that does handle issues and dup, where YaST software manager cannot do the dup. The testing also resulted in the same as the zypper dup. So, it can be considered a GUI alternative, for users that prefer a GUI.

2 Likes

I’ve had the same experience. If there is a conflict, Discover fails and I just go to Konsole and manually choose the solution for update.

1 Like