Error updating flatpak: corrupted file object

I get the following with flatpak update:

Warning: While pulling runtime/org.freedesktop.Platform.GL.default/x86_64/24.08 from remote flathub: opcode close: Corrupted file object; checksum expected=‘977ed333baf51512f8d3e3185f57ca1df48c86e34297498fe5db7f8ecc8e0578’ actual=‘20cb135bec2ce816c3332792e9e97f2f524959ffe896ee61d71195fc0d841775’

Any suggestions?

Wait and try again later. This may be due to the updating of the repository on the servers.

Still, same error unless i run it with sudo

Have you tried flatpak repair?

yes i have done that

If you haven’t tried, you can also use repair with --user or --system, depending on the installation, and possibly with sudo.

Another thing to try is to reinstall the problematic package. Logically, this should be flatpak install –reinstall package. Note: I’ve never tried this because I haven’t encountered such problem, it’s just one thing I found.

flatpak repair needs `sudo` to work, otherwise you only do a dry run…

It’s the only flatpak command you want to use with sudo.

same errors after doing the above

Also with flatpak install --reinstall package_name?

Another thing that could be tried is the use of flatpak remote-modify with --update-metadata. Never used this command, but why not? See Flatpak Command Reference - Flatpak documentation .

Contrary to what I said before, I think I had already had this checkback error (but a long time ago), and waiting did the trick. How long? I don’t know. Sorry, I don’t have any other possible solution.

After trying that i get:

Looking for updates…
F: Warning: Treating remote fetch error as non-fatal since runtime/org.kde.kasts.Locale/x86_64/stable is already installed: No such ref ‘runtime/org.kde.kasts.Locale/x86_64/stable’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.kde.Platform/x86_64/6.9 is already installed: No such ref ‘runtime/org.kde.Platform/x86_64/6.9’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.kde.Platform/x86_64/5.15-24.08 is already installed: No such ref ‘runtime/org.kde.Platform/x86_64/5.15-24.08’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.kde.Platform.Locale/x86_64/6.9 is already installed: No such ref ‘runtime/org.kde.Platform.Locale/x86_64/6.9’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.kde.Platform.Locale/x86_64/5.15-24.08 is already installed: No such ref ‘runtime/org.kde.Platform.Locale/x86_64/5.15-24.08’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Blue/x86_64/3.22 is already installed: No such ref ‘runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Blue/x86_64/3.22’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Aqua/x86_64/3.22 is already installed: No such ref ‘runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Aqua/x86_64/3.22’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gnome.Platform/x86_64/48 is already installed: No such ref ‘runtime/org.gnome.Platform/x86_64/48’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gnome.Platform/x86_64/47 is already installed: No such ref ‘runtime/org.gnome.Platform/x86_64/47’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gnome.Platform.Locale/x86_64/48 is already installed: No such ref ‘runtime/org.gnome.Platform.Locale/x86_64/48’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.gnome.Platform.Locale/x86_64/47 is already installed: No such ref ‘runtime/org.gnome.Platform.Locale/x86_64/47’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.freedesktop.Platform/x86_64/24.08 is already installed: No such ref ‘runtime/org.freedesktop.Platform/x86_64/24.08’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.freedesktop.Platform.openh264/x86_64/2.5.1 is already installed: No such ref ‘runtime/org.freedesktop.Platform.openh264/x86_64/2.5.1’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/24.08 is already installed: No such ref ‘runtime/org.freedesktop.Platform.ffmpeg-full/x86_64/24.08’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.freedesktop.Platform.Locale/x86_64/24.08 is already installed: No such ref ‘runtime/org.freedesktop.Platform.Locale/x86_64/24.08’ in remote flathub
F: Warning: Treating remote fetch error as non-fatal since runtime/org.freedesktop.Platform.GL.default/x86_64/24.08extra is already installed: No such ref ‘runtime/org.freedesktop.Platform.GL.default/x86_64/24.08extra’ in remote flathub
error: No such ref ‘runtime/org.freedesktop.Platform.GL.default/x86_64/24.08’ in remote flathub

I successfully installed the KDE runtime, version 6.9, from flathub. If the fetch error is true, it means there is a problem accessing the repository. Maybe a problem with a CDN? Did you change some settings in your network configuration? If not, only flathub maintainers can help you. Or wait until the problem is resolved if it is a server/CDN issue…

I changed the flathub mirror. I need to change it back to default but not sure how.

Use flatpak remote-modify flathub --url=https://dl.flathub.org/repo/.

Your desktop environment should prompt you for your password. If not, use the same command with sudo.