I am getting the following message when I run "zypper install :
Loading repository data...
Warning: Repository 'Main Update Repository' metadata expired since 2023-05-27 06:03:47 EDT.
Warning: Repository metadata expired: Check if 'autorefresh' is turned on (zypper lr), otherwise
manualy refresh the repository (zypper ref). If this does not solve the issue, it could be that
you are using a broken mirror or the server has actually discontinued to support the repository.
I’ve cleaned up the repositories and used “zypper ref --force” and I still get the error. According to “zypper lr” the main repository is enabled and is set to autorefresh.
zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh
---+-----------------------------+---------------------------------------------+---------+-----------+--------
1 | devel_languages_crystal | Crystal (15.4) | Yes | (r ) Yes | No
2 | devel_languages_lua | Lua is a powerful light-weight programmin-> | Yes | (r ) Yes | No
3 | openSUSE-Leap-15.4-1 | openSUSE-Leap-15.4-1 | No | ---- | ----
4 | repo-backports-debug-update | Update repository with updates for openSU-> | No | ---- | ----
5 | repo-backports-update | Update repository of openSUSE Backports | Yes | (r ) Yes | Yes
6 | repo-debug | Debug Repository | No | ---- | ----
7 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ----
8 | repo-debug-update | Update Repository (Debug) | No | ---- | ----
9 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ----
10 | repo-non-oss | Non-OSS Repository | Yes | (r ) Yes | Yes
11 | repo-oss | Main Repository | Yes | (r ) Yes | Yes
12 | repo-sle-debug-update | Update repository with debuginfo for upda-> | No | ---- | ----
13 | repo-sle-update | Update repository with updates from SUSE -> | Yes | (r ) Yes | Yes
14 | repo-source | Source Repository | No | ---- | ----
15 | repo-update | Main Update Repository | Yes | (r ) Yes | Yes
16 | repo-update-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes
This is the “repo-update.repo” file from "/etc/zypp/repos.d
repo-update.repo
[repo-update]
name=Main Update Repository
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/update/leap/$releasever/oss
path=/
type=rpm-md
keeppackages=0
All the other enable repositories are comming from the same mirror. The “expired since” time and date are today and a few seconds before getting the error message.
The only other thing to mention is this is a fresh install of openSUSE on an old Dell R620 Server.
I’m not sure how to fix this. Any ideas?