gmodena / nix-flatpak

Install flatpaks declaratively
Apache License 2.0
276 stars 10 forks source link

flatpak-managed-install.service failing to run due to "similar installed refs" error #51

Closed 8bitbuddhist closed 6 months ago

8bitbuddhist commented 6 months ago

This is most likely a user issue, but I'm at a loss 😅

flatpak-managed-install.service is failing to start due to a "similar installed refs" error. I made sure to specify the version of the conflicting Flatpak, but still can't figure out what's triggering the error. This seemed to start when switching the source of these packages from distribute.kde.org (which is now down) to Flathub.

Here's my configuration.nix. I have two versions for different apps: KeePassXC and OBS Studio.

services.flatpak =
   packages = [
        "org.kde.KStyle.Adwaita//5.15-23.08"  # Retrieved from https://docs.flatpak.org/en/latest/desktop-integration.html
        "org.kde.KStyle.Adwaita//6.5"
        "org.kde.WaylandDecoration.QAdwaitaDecorations//5.15-23.08" # Replaced deprecated QGnomePlatform https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
        "org.kde.WaylandDecoration.QAdwaitaDecorations//6.5"
   ];
};

My first thought was: maybe there's a dependency I'm missing? But I don't think that's the case, because all of my Flatpaks are working and seem to be themed ok. Here's the output of systemctl restart flatpak-managed-install.service. Is there any way to get a deeper log so I can maybe see what triggered this prompt?

× flatpak-managed-install.service
     Loaded: loaded (/etc/systemd/system/flatpak-managed-install.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-02-28 18:18:13 EST; 11min ago
TriggeredBy: ● flatpak-managed-install.timer
    Process: 653917 ExecStart=/nix/store/22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install (code=exited, status=1/FAILURE)
   Main PID: 653917 (code=exited, status=1/FAILURE)
         IP: 8.7K in, 1.4K out
        CPU: 79ms

Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]: Similar installed refs found for ‘org.kde.KStyle.Adwaita’:
Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]:    1) runtime/org.kde.KStyle.Adwaita/x86_64/6.5 (system)
Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]:    2) runtime/org.kde.KStyle.Adwaita/x86_64/5.15-23.08 (system)
Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]:    3) All of the above
Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]: Which do you want to use (0 to abort)? [0-3]: 0
Feb 28 18:18:13 Shura 22dnzrja18w2xk16h649c8qwjwr6lzxh-flatpak-managed-install[654012]: error: No ref chosen to resolve matches for ‘org.kde.KStyle.Adw>
Feb 28 18:18:13 Shura systemd[1]: flatpak-managed-install.service: Main process exited, code=exited, status=1/FAILURE
Feb 28 18:18:13 Shura systemd[1]: flatpak-managed-install.service: Failed with result 'exit-code'.
Feb 28 18:18:13 Shura systemd[1]: Failed to start flatpak-managed-install.service.
Feb 28 18:18:13 Shura systemd[1]: flatpak-managed-install.service: Consumed 79ms CPU time, received 8.7K IP traffic, sent 1.4K IP traffic.
8bitbuddhist commented 6 months ago

Nevermind, I set services.flatpak.uninstallUnmanagedPackages = true and that worked. I'll just use nix-flatpak exclusively (like I probably should be doing anyway 😛)