Outdated Main Repository

Hello,
Today, when I started online update thru console ( “sud zypper update”), I ve got, among all, this message:

Warning: Repository ‘Main Update Repository’ appears to be outdated. Consider using a dif
ferent mirror or server.
Reading installed packages…

Is there something I have to do because of this warning? I use Leap 15.3

Thank you for answering my questions

That message is only because your zypper thinks that for a long time no updates were done to the Main OSS repo. And that is logical, because in Leap all updates come from the several Update repos and the Main repo is not changed.

Most people will not see that because when you do an update regular on a not too long time schedule (let us say weekly), zypper sees that it was used and OK one week ago. But you have apparently not done an upgrade for a considerable long time, thus zypper warns you.

I do an update daily (because I can) and I have the same thing as the OP show up on my screen.

Then my description is not 100% true, sorry for that. But the main idea is still that the Main repos (OSS and non-OSS) do not change after release. zypper is afraid that you have a stale mirror or so.

I remember the same message reported to people using Tumbleweed, but then about the Update repo. Only because TWQ does not use the Update repo (well, very seldom).

I also do regular updates, and have also only recently started seeing this message.

If it is due to a repository not changing, and Zypper therefore thinking it’s outdated, then why does the warning not show for other unchanging repositories (e.g. Main Repository)?

Also, if I force a rebuild of all of the caches using

sudo zypper ref -f

then shouldn’t Zypper no longer know that the repo is outdated? And yet when I ran this command, I still received the warning when I did sudo zypper up.

Could it be a problem with the repo itself, perhaps a preparations are made for 15.4?

Thanks.

It is likely that you are being directed to an “outdated” mirror.

Use wget to directly download a file, kernel-default for example, and look to see which mirror you are redirected to:

paul@Orion-17:~/Global/Downloads> wget http://download.opensuse.org/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm
--2022-09-07 17:14:44--  http://download.opensuse.org/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirrorcache-eu.opensuse.org/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm [following]
--2022-09-07 17:14:44--  http://mirrorcache-eu.opensuse.org/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm
Resolving mirrorcache-eu.opensuse.org (mirrorcache-eu.opensuse.org)... 195.135.221.140, 2001:67c:2178:8::16
Connecting to mirrorcache-eu.opensuse.org (mirrorcache-eu.opensuse.org)|195.135.221.140|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirrors.coreix.net/opensuse/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm [following]
--2022-09-07 17:14:44--  http://mirrors.coreix.net/opensuse/distribution/leap/15.3/repo/oss/x86_64/kernel-default-5.3.18-57.3.x86_64.rpm
Resolving mirrors.coreix.net (mirrors.coreix.net)... 85.13.241.50, 2a01:c0:2:3d::2
Connecting to mirrors.coreix.net (mirrors.coreix.net)|85.13.241.50|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66846172 (64M) [application/x-rpm]
Saving to: ‘kernel-default-5.3.18-57.3.x86_64.rpm’

kernel-default-5.3.18-57.3.x86_64.rpm    100%==================================================================================>]  63.75M  25.1MB/s    in 2.5s    

2022-09-07 17:14:47 (25.1 MB/s) - ‘kernel-default-5.3.18-57.3.x86_64.rpm’ saved [66846172/66846172]

paul@Orion-17:~/Global/Downloads>

in my case I’m redirected to “mirrors.coreix.net

Having found that take a look at the status of the openSUSE mirrors: https://mirrors.opensuse.org/ (red is “outdated”)

Be aware though that mirror redirection is dynamic, you may not always be directed to the same mirror…

And, as the zypper message shown by the OP states, “Consider using a different mirror or server”.

Thanks.

But if mirror redirection is dynamic, is there no safeguard to prevent being redirected to an outdated mirror? Is the redirection random every time?

And assuming there’s no critical update that I’m after (in which case I could specify the mirror I want to use on a temporary/permanent basis), is it best to simply ignore the warning given that it should disappear when zypper eventually gets redirected to a different mirror?

Hi Paul & Henk,
In my case it is the Update repo that gives me the suggested use of a different mirror. Strange that an update repo is not updated itself, particularly if the redirection is automatic, as you suggest.
Whatever, all I want to know is should I ignore the warning and if I wish to use a different mirror how do I do that please?
Budge

It’s not random, an attempt is made to connect to the “best” mirror based upon your own location (as determined from your IP address).

Quote from: openSUSE:Mirrors - openSUSE Wiki*
If you use software.opensuse.org or download.opensuse.org, the server will take care of finding the fastest mirror for you. It will automatically select one of the known and active mirrors from a database and redirect the download. See the official documentation for technical details on how this works.*

Using the mirror I indicated at post #8

Replace the “normal” URL: https://download.opensuse.org/distribution/leap/15.3/repo/oss/
with that of your chosen mirror: http://mirrors.coreix.net/opensuse/distribution/leap/15.3/repo/oss/

Personally, on the very rare occasion I’ve seen the "Outdate Repository warning I’ve simply left the update for a few hours and then tried again. I would only consider specifying a specific mirror if I was consistently seeing the warning.

Do consider though:

Quote from: https://mirrors.opensuse.org/*
Under normal circumstances, there should be no need to use mirrors directly, and look at this table for that purpose. If you do see the need, there might be something wrong and it would be appreciated if you notify the admins about it, so it can be fixed for the benefit of yourself, and possibly many other users.*

As an afterthought I should add that the URL of your chosen mirror may not necessarily be in the form shown for mirrors.coreix.net - You may need to visit the mirror in a web browser first to establish the exact path to use in the URL prior to “distribution/leap/15.3/repo/oss/