Flatpak app fails to update

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rdlf4
Level 2
Level 2
Posts: 72
Joined: Sun Jul 02, 2017 9:53 pm

Flatpak app fails to update

Post by rdlf4 »

Hello,

The following Flatpak app always fails to update on my computer:
org.freedesktop.Platform.openh264 - on both versions, 2.0 and 2.2.0. This is the output from the terminal:

Code: Select all

flatpak update
Looking for updates…


        ID                                Branch Op Remote  Download
 1. [✗] org.freedesktop.Platform.openh264 2.0    i  flathub            1,2 MB / 1,5 MB
 2. [✗] org.freedesktop.Platform.openh264 2.2.0  i  flathub          614,3 kB / 944,3 kB
 3. [✓] org.gnome.Platform.Locale         43     u  flathub 1.0 kB / 340,2 MB
 4. [✓] org.gnome.Platform                43     u  flathub 1.0 kB / 325,0 MB

Warning: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256
Warning: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256
Changes complete.
Admittedly, I'm not familiar to fixing an issue from Flatpak applications, so I really don't know where to go from here.
I'd appreciate if somebody could step in and let me know how or why that's happened.
Any suggestion on a fix would also be appreciated.

Thanks in advance.
Last edited by LockBot on Thu May 25, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Flatpak app fails to update

Post by xenopeek »

That runtime comes from https://gitlab.com/freedesktop-sdk/freedesktop-sdk/. I can't find any issues there that sound related to your warning. I did find this issue that mentions the same: https://github.com/flatpak/flatpak/issues/4107. The suggested solution there was to change your network DNS. Maybe give it a try but I doubt it's the cause, or how else did the other updates install if your DNS is a problem?

I would probably try removing these runtimes and then reinstalling them. ** disclaimer ** I don't know if this will do anything useful, but it's what I would try. If reinstalling doesn't work with the same error you're in a worse bind as now you don't even have the old runtimes installed.

Code: Select all

flatpak uninstall --delete-data org.freedesktop.Platform.openh264/x86_64/2.0 org.freedesktop.Platform.openh264/x86_64/2.2.0
flatpak install org.freedesktop.Platform.openh264/x86_64/2.0 org.freedesktop.Platform.openh264/x86_64/2.2.0
Image
rdlf4
Level 2
Level 2
Posts: 72
Joined: Sun Jul 02, 2017 9:53 pm

Re: Flatpak app fails to update

Post by rdlf4 »

xenopeek wrote: Fri Nov 25, 2022 1:04 pm That runtime comes from https://gitlab.com/freedesktop-sdk/freedesktop-sdk/. I can't find any issues there that sound related to your warning. I did find this issue that mentions the same: https://github.com/flatpak/flatpak/issues/4107. The suggested solution there was to change your network DNS. Maybe give it a try but I doubt it's the cause, or how else did the other updates install if your DNS is a problem?

I would probably try removing these runtimes and then reinstalling them. ** disclaimer ** I don't know if this will do anything useful, but it's what I would try. If reinstalling doesn't work with the same error you're in a worse bind as now you don't even have the old runtimes installed.

Code: Select all

flatpak uninstall --delete-data org.freedesktop.Platform.openh264/x86_64/2.0 org.freedesktop.Platform.openh264/x86_64/2.2.0
flatpak install org.freedesktop.Platform.openh264/x86_64/2.0 org.freedesktop.Platform.openh264/x86_64/2.2.0
Thank you for your message.

Initially, I thought those were installed on my system, but apparently that isn't the case. Here's the output of flatpak list:

Code: Select all

flatpak list
Name                                            Application ID                                Version           Branch          Installation
Amberol                                         io.bassi.Amberol                              0.9.1             stable          system
Freedesktop Platform                            org.freedesktop.Platform                      21.08.16          21.08           system
Mesa                                            org.freedesktop.Platform.GL.default           21.3.9            21.08           system
Mesa                                            org.freedesktop.Platform.GL.default           22.1.7            22.08           system
GNOME Application Platform version 42           org.gnome.Platform                                              42              system
GNOME Application Platform version 43           org.gnome.Platform                                              43              system
Mint-Y Gtk Theme                                org.gtk.Gtk3theme.Mint-Y                                        3.22            system
KDE Application Platform                        org.kde.Platform  
And they're not there.
Weird. No idea why flatpak "updater" brought those up in the first place, since... they aren't installed.
So I tried installing them, which output this error message:

Code: Select all

flatpak install org.freedesktop.Platform.openh264/x86_64/2.0 org.freedesktop.Platform.openh264/x86_64/2.2.0
Looking for matches…
Found similar ref(s) for ‘org.freedesktop.Platform.openh264/x86_64/2.0’ in remote ‘flathub’ (system).
Use this remote? [Y/n]: 


        ID                                           Branch           Op           Remote            Download
 1. [✗] org.freedesktop.Platform.openh264            2.0              i            flathub               1,2 MB / 1,5 MB
 2. [ ] org.freedesktop.Platform.openh264            2.2.0            i            flathub           < 944,3 kB

Error: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256
error: Failed to install org.freedesktop.Platform.openh264: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256
Apparently apply_extra is doing something that's preventing the installation. I wish I could bring more to this, but I have no idea where the logs are stored.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Flatpak app fails to update

Post by xenopeek »

Try:
flatpak install --verbose org.freedesktop.Platform.openh264/x86_64/2.0

Hopefully it will give some more context to the error.
Image
rdlf4
Level 2
Level 2
Posts: 72
Joined: Sun Jul 02, 2017 9:53 pm

Re: Flatpak app fails to update

Post by rdlf4 »

xenopeek wrote: Fri Nov 25, 2022 6:24 pm Try:
flatpak install --verbose org.freedesktop.Platform.openh264/x86_64/2.0

Hopefully it will give some more context to the error.

Code: Select all

flatpak install --verbose org.freedesktop.Platform.openh264/x86_64/2.0
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/rodolfo/.local/share/flatpak
Looking for matches…
F: Fetching summary file for remote ‘flathub’
Found similar ref(s) for ‘org.freedesktop.Platform.openh264/x86_64/2.0’ in remote ‘flathub’ (system).
Use this remote? [Y/n]: Y
F: Fetching summary file for remote ‘flathub’
F: Transaction: install flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.0[*]
F: Looking for remote metadata updates for flathub
F: marking op install:runtime/org.freedesktop.Platform.openh264/x86_64/2.0 resolved to 73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b


 1.	   	org.freedesktop.Platform.openh264	2.0	i	flathub	< 1,5 MB

Proceed with these changes to the system installation? [Y/n]: Y
Installing…                                                                                                              F: Calling system helper: GetRevokefsFd
F: Calling system helper: GetRevokefsFd
F: flatpak_dir_pull: Using commit 73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b for pull of ref runtime/org.freedesktop.Platform.openh264/x86_64/2.0 from remote flathub
F: Loading http://ciscobinary.openh264.org/libopenh264-2.1.1-linux64.6.so.bz2 using libsoup

Installing… █▌                     8%  592 bytes/s
Installing… ██████████▊           54%  304,6 kB/sF: Received 608556 bytes
F: Loading http://ciscobinary.openh264.org/libopenh264-2.0.0-linux64.5.so.bz2 using libsoup

Installing… ██████████▊           54%  304,6 kB/s
Installing… ████████████████████ 100%  601,1 kB/sF: Received 592986 bytes
F: Calling system helper: Deploy

Error: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256                       
error: Failed to install org.freedesktop.Platform.openh264: Error deploying: While trying to apply extra data: apply_extra script failed, exit status 256

Locked

Return to “Software & Applications”