flathub / net._86box._86Box

https://flathub.org/apps/details/net._86box._86Box
0 stars 1 forks source link

[ERROR] Installing net._86box._86Box does not install net._86box._86Box.ROMs correctly #6

Open pedrohqb opened 2 years ago

pedrohqb commented 2 years ago

Check out the log. It seems that net._86box._86Box.ROMs/x86_64/stable is pulling an older runtime.

pedro@mope-tumbleweed:~> sudo flatpak install net._86box._86Box Procurando por correspondências… Runtime exigido para net._86box._86Box/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-22.08) localizado no remoto flathub Você deseja instalá-lo? [Y/n]:

net._86box._86Box permissions: ipc network pulseaudio x11 devices file access [1] dbus access [2]

[1] xdg-config/kdeglobals:ro
[2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify

    ID                                Ramo                 Op          Remoto           Baixar
  1. [—] net._86box._86Box.ROMs stable i flathub 35,6 MB / 35,6 MB
  2. [ ] org.kde.KStyle.Adwaita 5.15-22.08 i flathub < 6,6 MB
  3. [ ] org.kde.Platform.Locale 5.15-22.08 i flathub < 352,9 MB (parcial) ID Ramo Op Remoto Baixar
  4. [✗] net._86box._86Box.ROMs stable i flathub 35,6 MB / 35,6 MB
  5. [✓] org.kde.KStyle.Adwaita 5.15-22.08 i flathub 6,6 MB / 6,6 MB
  6. [✓] org.kde.Platform.Locale 5.15-22.08 i flathub 671,7 kB / 352,9 MB
  7. [✓] org.kde.Platform 5.15-22.08 i flathub 168,6 MB / 323,1 MB
  8. [✓] net._86box._86Box stable i flathub 135,7 MB / 136,0 MB

Warning: Enquanto tentava aplicar dados extras: Arquivo de chave não tem chave “runtime” no grupo “Runtime” Instalação concluída.

AsciiWolf commented 2 years ago

Thanks for your report. I just tried it and was not able to reproduce your issue. What Flatpak version (flatpak --version) do you have?

AsciiWolf commented 2 years ago

Oh. I was actually able to reproduce it! On another machine without the org.kde.Platform installed. It does not seem to happen if org.kde.Platform//5.15-22.08 is already installed. Interesting...

AsciiWolf commented 2 years ago

I have found one possibly related issue and fixed it. Please, retest the installation in a few hours and let me know if the problem still persists. Thanks!

pedrohqb commented 2 years ago

The problem was partly solved. The error still persists. Maybe because of the order of the dependencies/runtimes?

pedro@mope-tumbleweed:~> sudo flatpak install net._86box._86Box Procurando por correspondências… Runtime exigido para net._86box._86Box/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-22.08) localizado no remoto flathub Você deseja instalá-lo? [Y/n]:

net._86box._86Box permissions: ipc network pulseaudio x11 devices file access [1] dbus access [2]

[1] xdg-config/kdeglobals:ro
[2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify

    ID                                Ramo                 Op          Remoto           Baixar
  1. [/] net._86box._86Box.ROMs stable i flathub 35,6 MB / 35,6 MB
  2. [ ] org.kde.KStyle.Adwaita 5.15-22.08 i flathub < 6,6 MB
  3. [ ] org.kde.Platform.Locale 5.15-22.08 i flathub < 352,9 MB (parcial) ID Ramo Op Remoto Baixar
  4. [✗] net._86box._86Box.ROMs stable i flathub 35,6 MB / 35,6 MB
  5. [✓] org.kde.KStyle.Adwaita 5.15-22.08 i flathub 6,6 MB / 6,6 MB
  6. [✓] org.kde.Platform.Locale 5.15-22.08 i flathub 671,7 kB / 352,9 MB
  7. [✓] org.kde.Platform 5.15-22.08 i flathub 169,1 MB / 323,1 MB
  8. [✓] net._86box._86Box stable i flathub 135,7 MB / 136,0 MB

Warning: Enquanto tentava aplicar dados extras: Arquivo de chave não tem chave “runtime” no grupo “Runtime” Instalação concluída.

pedrohqb commented 2 years ago

Curiously, if I run sudo flatpak uninstall --unused, I get this:

pedro@mope-tumbleweed:~> sudo flatpak uninstall --unused

Estes runtimes na instalação “system” são fixados e não serão removidos; veja flatpak-pin(1): runtime/net._86box._86Box.ROMs/x86_64/stable Nada não usado para desinstalar

AsciiWolf commented 2 years ago

Yeah, it is weird. They may be some bug in Flatpak. I have already searched the Internet for this error and found another app on Flathub that has the same problem. I will try investigating this more further.

AsciiWolf commented 2 years ago

I am starting to worry that it is caused by the net._86box._86Box.ROMs extension being installed before net._86box._86Box. It may be and it would make sense, but it is intentional that runtime extensions (related refs) are always installed before the actual app. It used to be the opposite, but it caused many issues with GNOME Software and similar. However, in this case, the net._86box._86Box app is the runtime of net._86box._86Box.ROMs, so it would make more sense to install it first and install the .ROMs extension afterwards.

AsciiWolf commented 2 years ago

It seems to happen only with extra-data and only if the (kde) runtime is not already installed. The PeaZip i386 extension (that also uses extra data) has the same problem. See the following log:

$ flatpak --user install flathub io.github.peazip.PeaZip
Looking for matches…
Required runtime for io.github.peazip.PeaZip/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-21.08) found in remote flathub
Do you want to install it? [Y/n]: y

io.github.peazip.PeaZip permissions:
    ipc    wayland    x11    dri    multiarch    file access [1]    dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.kde.KGlobalSettings, org.kde.StatusNotifierWatcher, org.kde.kconfig.notify

        ID                                                               Branch                  Op              Remote               Download
 1. [\] io.github.peazip.PeaZip.Addon.i386                               stable                  i               flathub                 10.3 MB / 9.7 MB
 2. [ ] org.freedesktop.Platform.GL.default                              21.08                   i               flathub              < 129.8 MB
 3. [ ] org.freedesktop.Platform.VAAPI.Intel                             21.08                   i               flathub               < 11.8 MB
        ID                                                               Branch                  Op              Remote               Download
 1. [✗] io.github.peazip.PeaZip.Addon.i386                               stable                  i               flathub               10.3 MB / 9.7 MB
 2. [✓] org.freedesktop.Platform.GL.default                              21.08                   i               flathub              129.6 MB / 129.8 MB
 3. [✓] org.freedesktop.Platform.VAAPI.Intel                             21.08                   i               flathub               11.8 MB / 11.8 MB
 4. [✓] org.kde.KStyle.Adwaita                                           5.15-21.08              i               flathub                6.6 MB / 6.6 MB
 5. [✓] org.kde.Platform.Locale                                          5.15-21.08              i               flathub               17.8 kB / 345.9 MB
 6. [✓] org.kde.PlatformTheme.QGnomePlatform                             5.15-21.08              i               flathub               10.6 MB / 10.6 MB
 7. [✓] org.kde.PlatformTheme.QtSNI                                      5.15-21.08              i               flathub                1.3 MB / 1.3 MB
 8. [✓] org.kde.WaylandDecoration.QGnomePlatform-decoration              5.15-21.08              i               flathub                6.8 MB / 11.1 MB
 9. [✓] org.kde.Platform                                                 5.15-21.08              i               flathub              292.2 MB / 309.0 MB
10. [✓] io.github.peazip.PeaZip                                          stable                  i               flathub               13.8 MB / 12.2 MB

Warning: While trying to apply extra data: Key file does not have key “runtime” in group “Runtime”
Installation complete.

$ flatpak --user uninstall flathub io.github.peazip.PeaZip

        ID                             Branch        Op
 1. [-] io.github.peazip.PeaZip        stable        r

Uninstall complete.

$ flatpak --user install flathub io.github.peazip.PeaZip
Looking for matches…

io.github.peazip.PeaZip permissions:
    ipc    wayland    x11    dri    multiarch    file access [1]    dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.kde.KGlobalSettings, org.kde.StatusNotifierWatcher, org.kde.kconfig.notify

        ID                                            Branch           Op           Remote            Download
 1. [✓] io.github.peazip.PeaZip.Addon.i386            stable           i            flathub           204.7 kB / 9.7 MB
 2. [✓] io.github.peazip.PeaZip                       stable           i            flathub            13.7 MB / 12.2 MB

Installation complete.
AsciiWolf commented 2 years ago

I honestly have no idea what could cause this issue (other than my hypothesis mentioned in https://github.com/flathub/net._86box._86Box/issues/6#issuecomment-1253645551). And it seems to be a bigger problem, not just related to the 86Box Flatpak.

@gasinvein Any idea?

AsciiWolf commented 2 years ago

I take back what I said about the extension being installed before the actual app. This does not seem to be a problem. The problem is an extension (net._86box._86Box.ROMs) being installed before the runtime (org.kde.Platform). This may also be a bug in the KDE runtime since PeaZip uses the same runtime (just 21.08 instead of 22.08).

gasinvein commented 2 years ago

The problem is an extension (net._86box._86Box.ROMs) being installed before the runtime (org.kde.Platform)

Looks like it. Seems worth reporting to flatpak bugtracker.

AsciiWolf commented 1 year ago

Reported as flatpak/flatpak#5170.