Can't update system - package cannot be verified and repo updates is GPG enabled

I tried updating my system since there was a notification saying there were updates. But I’m getting this error:

Importing packages... done
error: importing RPMs: package gnutls-utils-3.8.6-1.fc40.x86_64 cannot be verified and repo updates is GPG enabled: /var/cache/rpm-ostree/repomd/updates-40-x86_64/packages/gnutls-utils-3.8.6-1.fc40.x86_64.rpm could not be verified.
/var/cache/rpm-ostree/repomd/updates-40-x86_64/packages/gnutls-utils-3.8.6-1.fc40.x86_64.rpm
System update failed: 
   0: Command failed: `/usr/bin/rpm-ostree upgrade`
   1: `/usr/bin/rpm-ostree` failed: exit status: 1

Location:
   src/steps/os/linux.rs:273

Not sure what to do here, I’m not willing to reinstall the whole OS just because of this error.

I did run the fix.universal-blue.org code since I wasn’t getting updates anymore because I was running this distro before the given date in the announcement.

I’m not even sure where this package comes from and why it cannot be verified.
I also tried rebasing the image but it said it was already rebased. So no luck there.

I’m at a loss here, anyone any ideas?

Can you toss in a rpm-ostree status?

Yeah I just forgot to add some details, I wanted to edit the post but it had to be verified. Here you go:

$ rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:7c18d7e9c1fd6490670bbd9057f42f5c84095ab932007b6d52e6143319f01af2
                  Version: 40.20240707.0 (2024-07-07T23:45:20Z)
          LayeredPackages: edk2-ovmf gdisk gnome-multi-writer gparted htop qemu virglrenderer
                           virt-manager
                Initramfs: regenerate

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:7c18d7e9c1fd6490670bbd9057f42f5c84095ab932007b6d52e6143319f01af2
                  Version: 40.20240707.0 (2024-07-07T23:45:20Z)
          LayeredPackages: edk2-ovmf gdisk gnome-multi-writer gparted htop qemu virglrenderer
                           virt-manager
                Initramfs: regenerate

I’m running bazzite-nvidia:stable, Fedora Linux 40 (Kinoite) x86_64, Linux 6.9.7-201.fsync.fc40.x86_64.

Thanks for your quick response.

Try:

rpm-ostree cleanup -m

And then re-run the fix command.

Thank you so much that worked!

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