Repository 'Main Update Repository' is invalid.

Hi Guys,

I have problem updating Main Update Repository. When I run zypper refresh, it shows below error, can advice me on this?

This happens since yesterday.

opensuseLEAP 15.2

Thank you.

finke:/var/cache # zypper refresh
Repository ‘up-to-date version of x2go (openSUSE_Leap_15.2)’ is up to date.
Repository ‘ms-teams’ is up to date.
Repository ‘Non-OSS Repository’ is up to date.
Repository ‘Main Repository’ is up to date.
Retrieving repository ‘Main Update Repository’ metadata …[error]
Repository ‘Main Update Repository’ is invalid.
[repo-update|http://download.opensuse.org/update/leap/15.2/oss/] Valid metadata not found at specified URL
History:

  • File ‘./repodata/fd19a2eb6381211ecdfbfbed6e46767b0ba3adf815a67ff6b3edc643571f607b-primary.xml.gz’ not found on medium ‘http://download.opensuse.org/update/leap/15.2/oss/
  • Can’t provide ./repodata/fd19a2eb6381211ecdfbfbed6e46767b0ba3adf815a67ff6b3edc643571f607b-primary.xml.gz

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘Main Update Repository’ because of the above error.
Repository ‘Update Repository (Non-Oss)’ is up to date.
Repository ‘skype (stable)’ is up to date.
Repository ‘teams’ is up to date.
Some of the repositories have not been refreshed because of an error.

The missing xml.gz file seem like keep on changing ?

This is default configuration.

finke:/var/cache/zypp # zypper refresh
Repository ‘up-to-date version of x2go (openSUSE_Leap_15.2)’ is up to date.
Repository ‘ms-teams’ is up to date.
Repository ‘Non-OSS Repository’ is up to date.
Repository ‘Main Repository’ is up to date.
Retrieving repository ‘Main Update Repository’ metadata …[error]
Repository ‘Main Update Repository’ is invalid.
[repo-update|http://download.opensuse.org/update/leap/15.2/oss/] Valid metadata not found at specified URL
History:

  • File ‘./repodata/079325347f125238b00e1608eef4b2cfd3b4c2430f33cc5508d5681b530b340e-primary.xml.gz’ not found on medium ‘http://download.opensuse.org/update/leap/15.2/oss/
  • Can’t provide ./repodata/079325347f125238b00e1608eef4b2cfd3b4c2430f33cc5508d5681b530b340e-primary.xml.gz

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘Main Update Repository’ because of the above error.
Repository ‘Update Repository (Non-Oss)’ is up to date.
Repository ‘skype (stable)’ is up to date.
Repository ‘teams’ is up to date.
Some of the repositories have not been refreshed because of an error.

You are probably being redirected to a mirror that is not up to date.

As new updates come in, those filenames can change.

In my experience, when this happens just wait a few hours (or even a day), and it usually corrects itself.

I second that advice.

Thanks for sharing

Is there anyway we can fix this quickly from ourside?

Like stick to a fix repo?

Any idea usually how frequent these repos get refreshed ?

Thank you.