Repository invalid abd GPG key expired

Hello, I am currently experiencing this error with wsl2 tumbleweed. I have reinstalled wsl tumbleweed but still have this error.

Welcome to the openSUSE Forums!
You are downloading from an old copy of those repos, maybe you are still affected by the problem reported here?
Please don’t report problems using screenshots, but copy the output in the terminal and paste here using “pre-formatted text” tags (use the </> button above the editing area).

1 Like

Sorry for sending pictures, here are my repository details

> $ zypper lr -d
# | Alias         | Name                                   | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                      | Service
--+---------------+----------------------------------------+---------+-----------+---------+------+----------+--------+----------------------------------------------------------+--------
1 | repo-debug    | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/tumbleweed/repo/oss/  |
2 | repo-non-oss  | openSUSE-Tumbleweed-Non-Oss            | Yes     | ( p) Yes  | Yes     | -    |   99     | N/A    | http://download.opensuse.org/tumbleweed/repo/non-oss/    |
3 | repo-openh264 | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed  |
4 | repo-oss      | openSUSE-Tumbleweed-Oss                | Yes     | ( p) Yes  | Yes     | -    |   99     | N/A    | http://download.opensuse.org/tumbleweed/repo/oss/        |
5 | repo-source   | openSUSE-Tumbleweed-Source             | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/source/tumbleweed/repo/oss/ |
6 | repo-update   | openSUSE-Tumbleweed-Update             | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://download.opensuse.org/update/tumbleweed/          |

Here are the output details when doing zypper ref or zypper ref -f

> $ sudo zypper ref -f
[sudo] password for root:
Forcing raw metadata refresh
Looking for gpg keys in repository openSUSE-Tumbleweed-Update.
  gpgkey=http://download.opensuse.org/update/tumbleweed/repodata/repomd.xml.key
Warning: The gpg key signing file 'repomd.xml' has expired.
  Repository:       openSUSE-Tumbleweed-Update
  Key Fingerprint:  22C0 7BA5 3417 8CD0 2EFE 22AA B88B 2FD4 3DBD C284
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 2048
  Key Created:      Mon 05 May 2014 03:37:40 PM WIB
  Key Expires:      Thu 02 May 2024 03:37:40 PM WIB (EXPIRED)
  Rpm Name:         gpg-pubkey-3dbdc284-53674dd4
Retrieving repository 'openSUSE-Tumbleweed-Update' metadata ..........................................................................................................................[done]
Forcing building of repository cache
Building repository 'openSUSE-Tumbleweed-Update' cache ...............................................................................................................................[done]
Forcing raw metadata refresh
Looking for gpg keys in repository openSUSE-Tumbleweed-Non-Oss.
  gpgkey=http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key
Warning: The gpg key signing file 'repomd.xml' has expired.
  Repository:       openSUSE-Tumbleweed-Non-Oss
  Key Fingerprint:  22C0 7BA5 3417 8CD0 2EFE 22AA B88B 2FD4 3DBD C284
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 2048
  Key Created:      Mon 05 May 2014 03:37:40 PM WIB
  Key Expires:      Thu 02 May 2024 03:37:40 PM WIB (EXPIRED)
  Rpm Name:         gpg-pubkey-3dbdc284-53674dd4
Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata ........................................................................................................................[error]
Repository 'openSUSE-Tumbleweed-Non-Oss' is invalid.
[repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] Failed to retrieve new repository metadata.
History:
 - File './repodata/f0c3eae9ed28db3b70a2740fe48f9e3b4f1b8a4feb20fb5540b4359d7d2f28f3-primary.xml.gz' not found on medium 'http://mr.heru.id/opensuse/tumbleweed/repo/non-oss/'
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-Tumbleweed-Non-Oss' because of the above error.
Forcing raw metadata refresh
Retrieving repository 'Open H.264 Codec (openSUSE Tumbleweed)' metadata ..............................................................................................................[done]
Forcing building of repository cache
Building repository 'Open H.264 Codec (openSUSE Tumbleweed)' cache ...................................................................................................................[done]
Forcing raw metadata refresh
Looking for gpg keys in repository openSUSE-Tumbleweed-Oss.
  gpgkey=http://download.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
Warning: The gpg key signing file 'repomd.xml' has expired.
  Repository:       openSUSE-Tumbleweed-Oss
  Key Fingerprint:  22C0 7BA5 3417 8CD0 2EFE 22AA B88B 2FD4 3DBD C284
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Algorithm:    RSA 2048
  Key Created:      Mon 05 May 2014 03:37:40 PM WIB
  Key Expires:      Thu 02 May 2024 03:37:40 PM WIB (EXPIRED)
  Rpm Name:         gpg-pubkey-3dbdc284-53674dd4
Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata ............................................................................................................................[error]
Repository 'openSUSE-Tumbleweed-Oss' is invalid.
[repo-oss|http://download.opensuse.org/tumbleweed/repo/oss/] Failed to retrieve new repository metadata.
History:
 - File './repodata/2ee1c23b612f73889b981c0af9bb29e47c0ec3e804adbbb1225499eb707f0de6-appdata.xml.gz' not found on medium 'http://mr.heru.id/opensuse/tumbleweed/repo/oss/'
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'openSUSE-Tumbleweed-Oss' because of the above error.
Some of the repositories have not been refreshed because of an error.

There are massive problems with infrastructure right now. Incomplete metadata, mirror issues. The latest snapshot is not even visible on servers.

Is there a solution for this? I can’t search, check info and install some packages.

$ zypper se fzf

    Note: Repository 'openSUSE-Tumbleweed-Non-Oss' is out-of-date. You can run 'zypper refresh' as
    root to update it.

    Note: Repository 'openSUSE-Tumbleweed-Oss' is out-of-date. You can run 'zypper refresh' as root
    to update it.
Loading repository data...
Repository 'openSUSE-Tumbleweed-Non-Oss' not cached. Caching...
Error building the cache:
[repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] No permission to write repository cache.
Problem loading data from 'openSUSE-Tumbleweed-Non-Oss'
Resolvables from 'openSUSE-Tumbleweed-Non-Oss' not loaded because of error.
Repository 'openSUSE-Tumbleweed-Oss' not cached. Caching...
Error building the cache:
[repo-oss|http://download.opensuse.org/tumbleweed/repo/oss/] No permission to write repository cache.
Problem loading data from 'openSUSE-Tumbleweed-Oss'
Resolvables from 'openSUSE-Tumbleweed-Oss' not loaded because of error.
Reading installed packages...
No matching items found.
zypper if fzf

    Note: Repository 'openSUSE-Tumbleweed-Non-Oss' is out-of-date. You can run 'zypper refresh' as
    root to update it.

    Note: Repository 'openSUSE-Tumbleweed-Oss' is out-of-date. You can run 'zypper refresh' as root
    to update it.
Loading repository data...
Repository 'openSUSE-Tumbleweed-Non-Oss' not cached. Caching...
Error building the cache:
[repo-non-oss|http://download.opensuse.org/tumbleweed/repo/non-oss/] No permission to write repository cache.
Problem loading data from 'openSUSE-Tumbleweed-Non-Oss'
Resolvables from 'openSUSE-Tumbleweed-Non-Oss' not loaded because of error.
Repository 'openSUSE-Tumbleweed-Oss' not cached. Caching...
Error building the cache:
[repo-oss|http://download.opensuse.org/tumbleweed/repo/oss/] No permission to write repository cache.
Problem loading data from 'openSUSE-Tumbleweed-Oss'
Resolvables from 'openSUSE-Tumbleweed-Oss' not loaded because of error.
Reading installed packages...


package 'fzf' not found.
No matching items found.

You can try to switch to a mirror in Europe or North America which appear to be OK, or maybe to a mirror near your area but checking first if it is working and up to date, see https://mirrors.opensuse.org/

Yes, wait until it is fixed.

If you can’t wait a couple of days, you can only try individual mirrors.

https://mirrors.opensuse.org/

It seems that the mirrors around my area are not up to date, is there a suggestion for the most up to date mirrors? I also want to ask how to add and use mirrors?

I don’t know if the following are easily reachable from your location, but a random check found these up to date and working:
https://ftp.riken.jp/Linux/opensuse/tumbleweed/repo/oss/x86_64/
https://mirrors.ocf.berkeley.edu/opensuse/tumbleweed/repo/oss/x86_64/
Commands to add those would be, respectively:

zypper addrepo -f https://ftp.riken.jp/Linux/opensuse/tumbleweed/repo/oss/ "riken.jp OSS"

and

zypper addrepo -f https://mirrors.ocf.berkeley.edu/opensuse/tumbleweed/repo/oss/ "Berkeley OSS"

with obvious adaptations for the non-oss versions.
You may have to temporarily disable your other repos if you still have problems.

Most European mirrors are up to date and working as well.

Thanks for the advice and help, is there any downside to using repo mirrors that are far from my area such as using mirrors from Europe or North America?

Depending on your ISP infrastructure, maybe a slower speed?

Thanks for the explanation, if the mirror and infrastructure issues are resolved for tumbleweed should I go back to using the main opensuse repository?

Yes, when the current problem is solved.

Hi there,

I was facing the same issue, solved it by changing the baseurl value at /etc/zypp/repos.d/repo-non-oss.repo for some other mirror (picked one from the mirrorlist posted by @arvidjaar).

cat /etc/zypp/repos.d/repo-non-oss.repo

[repo-non-oss]
name=openSUSE-Tumbleweed-Non-Oss
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/tumbleweed/repo/non-oss/ # swap this
path=/
keeppackages=0

I manually checked the mirror in my browser before using it, some mirrors can be outdated. I used http://download.opensuse.net.br/tumbleweed/repo/non-oss/ and zypper refresh run just fine, this repo doesn’t even have that key lol

You will need sudo to edit etc/zypp/repos.d/repo-non-oss.repo.

Hopefully that can help you,

Cheers