File /var/tmp/TmpFile.gFp1p6 doesn't contain public key data

I don’t know how else to describe my issue, I’m unable to update due to this error.
I haven’t tried using any mirrors.

zypper refresh log

sudo zypper refresh
Repository ‘NVIDIA’ is up to date.
Repository ‘repo-non-free’ is up to date.
Retrieving repository ‘repo-non-oss’ metadata …[error]
Repository ‘repo-non-oss’ is invalid.
[openSUSE:repo-non-oss|/tumbleweed/repo/non-oss - openSUSE Download] Valid metadata not found at specified URL
History:

  • File /var/tmp/TmpFile.kU1xH3 doesn’t contain public key data

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘repo-non-oss’ because of the above error.
Repository ‘repo-openh264’ is up to date.
Retrieving repository ‘repo-oss’ metadata …[error]
Repository ‘repo-oss’ is invalid.
[openSUSE:repo-oss|/tumbleweed/repo/oss - openSUSE Download] Valid metadata not found at specified URL
History:

  • File /var/tmp/TmpFile.wSOC2f doesn’t contain public key data

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘repo-oss’ because of the above error.
Retrieving repository ‘update-tumbleweed’ metadata …[error]
Repository ‘update-tumbleweed’ is invalid.
[openSUSE:update-tumbleweed|/update/tumbleweed - openSUSE Download] Valid metadata not found at specified URL
History:

  • File /var/tmp/TmpFile.MvNpS3 doesn’t contain public key data

Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository ‘update-tumbleweed’ because of the above error.
Some of the repositories have not been refreshed because of an error.

Post:
zypper lr -d

Please use Code-Tags:

Code-Tags

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

#1 and #2 are the same!

Can you link the post? I’ve searched the forum for similar issues like mine before posting this, maybe you found something else that I didn’t.

I am afraid you misunderstand me. Most probably my fault.

My remark about there being two entries for one and the same repository definition is just that. It has nothing to do with your problem, but it should be addressed anyhow. And you can of course see that yourself when you look at the URLs. They are the same.

Oh, yeah they are the same. I don’t think that could be the root cause of the issue

I’ve also tried going into snapshots and trying the refresh command there but the result was the same.

Such problems are often transient, and when not - they are always problems specific to your location. You are redirected to a bad mirror or your provider plays MITM or simply blocks access to the mirror. Run

curl -LOv http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key

check for any errors, check the content of repomd.xml.key.

You can disable automatic repos and add manual definitions using a fixed mirror that works for you.

I don’t see any errors in the log

The IPs listed within the curl command do not trace back to me so I am not worried about them.

(I most likely misinterpreted your suggestion but maybe this could be helpful) and as for checking the content of repomd.xml.key by going into /var/cache/zypp/raw/ (I did a quick search with Dolphin and found a file belonging to the NVIDIA repo, then just copied the file location and went back a few folders to see all repos), some repos do not have any contents, respectively: openSUSE:repo-non-oss;openSUSE:repo-oss;openSUSE:update-tumbleweed

the curl command
$ curl -LOv http://cdn.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host cdn.opensuse.org:80 was resolved.
* IPv6: IP(replaced for anonymity)
* IPv4: IP(replaced for anonymity)
*   Trying IP(replaced for anonymity)...
* Connected to cdn.opensuse.org (IP(replaced for anonymity)) port 80
> GET /tumbleweed/repo/oss/repodata/repomd.xml.key HTTP/1.1
> Host: cdn.opensuse.org
> User-Agent: curl/8.8.0
> Accept: */*
> 
* Request completely sent off
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Content-Length: 12043
< Content-Type: text/html; charset=utf-8
< Etag: "sd515m9aj"
< Last-Modified: Tue, 07 May 2024 22:58:34 GMT
< Server: Caddy
< Date: Fri, 07 Jun 2024 13:31:16 GMT
< 
{ [5584 bytes data]
100 12043  100 12043    0     0  31894      0 --:--:-- --:--:-- --:--:-- 31859
* Connection #0 to host cdn.opensuse.org left intact
repomd files
┬─[bob@localhost:/v/c/z/raw]─[04:37:45 PM]
╰─>$ ls -R
.:
NVIDIA/                openSUSE:repo-non-oss/   openSUSE:repo-oss/
NVIDIA:repo-non-free/  openSUSE:repo-openh264/  openSUSE:update-tumbleweed/

./NVIDIA:
repodata/

./NVIDIA/repodata:
2e9fa160d9c1dbee71eb9dccae492242a8da4b978ff560266c2f1ce7792b2e8f-primary.xml.gz  repomd.xml.key
repomd.xml                                                                       susedata.xml.gz
repomd.xml.asc

'./NVIDIA:repo-non-free':
repodata/

'./NVIDIA:repo-non-free/repodata':
2e9fa160d9c1dbee71eb9dccae492242a8da4b978ff560266c2f1ce7792b2e8f-primary.xml.gz  repomd.xml.key
repomd.xml                                                                       susedata.xml.gz
repomd.xml.asc

'./openSUSE:repo-non-oss':

'./openSUSE:repo-openh264':
repodata/

'./openSUSE:repo-openh264/repodata':
7604cfd322115da24101e4de8d0628d2b844a373a8d226150669226227e693e7a653e4ad7e1e7296a8a620cc1a0a3586ea2f9c1ffeeba037f21a71abd2ed1082-primary.xml.gz
ce517417368c3f57bfe0be8291286b3641211e67937a734bf462d6c22e8de1d7b08ad654d2e368f83bbc002d331e7dd166455c0458a6c448f373b4e1e4adba6b-filelists-ext.xml.gz
repomd.xml
repomd.xml.asc
repomd.xml.key

'./openSUSE:repo-oss':

'./openSUSE:update-tumbleweed':

It looks like a mirror fixed my issue, and after a system update (aka “zypper dup”) the normal URIs started working, so I guess that this would be the fix.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.