Error: Flatpak system operation Deploy not allowed for user

Hi,

TL;DR

When I execute:

$ ssh vagrant@192.168.122.31
[vagrant@fedora37 chezmoi]$ flatpak install -y flathub org.videolan.VLC

I have this error:

Error: Flatpak system operation Deploy not allowed for user
error: Failed to install org.kde.Platform: Flatpak system operation Deploy not allowed for user

I don’t understand this error and at the moment I have no idea in which direction to look :confused:.

Do you know how to fix this error? Or can you tell me in which direction to look (documentation url…)? Which site should I use to report my problem?

Long version

Hello, I works on a script to test in a VM my dotfiles config based on chezmoi.

I have create a Fedora 37 VM with this playground.

When I execute:

$ ssh vagrant@192.168.122.31
...
[vagrant@fedora37 chezmoi]$ flatpak install -y flathub org.videolan.VLC

I have this error:

Looking for matches…
Required runtime for org.videolan.VLC/x86_64/stable (runtime/org.kde.Platform/x86_64/5.15-22.08) found in remote flathub

org.videolan.VLC permissions:
    ipc       network       pulseaudio       x11       devices      file access [1]      dbus access [2]      bus ownership [3]

    [1] host, xdg-config/kdeglobals:ro, xdg-run/gvfs
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.freedesktop.ScreenSaver, org.freedesktop.secrets, org.kde.KGlobalSettings, org.kde.kconfig.notify,
        org.kde.kwalletd, org.kde.kwalletd5, org.mpris.MediaPlayer2.Player
    [3] org.mpris.MediaPlayer2.vlc


        ID                                Branch               Op          Remote           Download
 1. [✗] org.kde.KStyle.Adwaita            5.15-22.08           i           flathub             6.6 MB / 6.6 MB
 2. [✗] org.kde.Platform.Locale           5.15-22.08           i           flathub            17.9 kB / 354.3 MB
 3. [✗] org.kde.Platform                  5.15-22.08           i           flathub           210.1 MB / 323.9 MB
 4. [ ] org.videolan.VLC.Locale           stable               i           flathub          < 13.4 MB (partial)
 5. [ ] org.videolan.VLC                  stable               i           flathub          < 31.9 MB

Warning: Failed to get revokefs-fuse socket from system-helper: Flatpak system operation GetRevokefsFd not allowed for user
Warning: Flatpak system operation Deploy not allowed for user
Warning: Failed to get revokefs-fuse socket from system-helper: Flatpak system operation GetRevokefsFd not allowed for user
Warning: Flatpak system operation Deploy not allowed for user
Warning: Failed to get revokefs-fuse socket from system-helper: Flatpak system operation GetRevokefsFd not allowed for user
Error: Flatpak system operation Deploy not allowed for user
error: Failed to install org.kde.Platform: Flatpak system operation Deploy not allowed for user

Here are my shell environment variables: gist:249e1b33874affa1b36b39fc8ceaf0db · GitHub

Note: I have no error when I execute the command with sudo: sudo flatpak install -y flathub org.videolan.VLC :thinking: .

I don’t understand this error and at the moment I have no idea in which direction to look :confused:.

It is about polkit?

Do you know how to fix this error? Or can you tell me in which direction to look (documentation url…)? Which site should I use to report my problem?

It could be, Policy is here /usr/share/polkit-1/rules.d/org.freedesktop.Flatpak.rules

You may also want to:

  1. Take a look at https://docs.fedoraproject.org/en-US/quick-docs/troubleshooting_selinux/ and see if you’re getting any denials while trying to update.
  2. Run sudo flatpak repair

Thanks, I will look in this direction :slightly_smiling_face:.