2
4
Fork
You've already forked apps
1

flatpak installation gives warning: User flatpak does not exist in password file entry #211

Open
opened 2022年03月06日 12:00:57 +01:00 by Chevek · 6 comments
Chevek commented 2022年03月06日 12:00:57 +01:00 (Migrated from github.com)
Copy link

Submission type

  • [X ] Bug report
  • Feature Request

Package name & version you are having issues with or have a request for

flatpak
Package version : 1.12.6-1

Used repositories

Default

Expected behaviour

Install any flatpak without being root and without warning.

Actual behaviour

Give warning on any installation.
e.g. :
KaOS flatpak bzflag

On any installation, there is this warning :
Failed to get revokefs-fuse socket from system-helper: User flatpak does not exist in password file entry

Still, the flatpak works :
$ flatpak run org.bzflag.BZFlag

Steps to reproduce the problem

Install flatpak, add flathub repository and try to install any flatpak you want :
$ sudo pacman -S flatpak
$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
$ flatpak install bzflag

...

#### Submission type - [X ] Bug report - [ ] Feature Request #### Package name & version you are having issues with or have a request for flatpak Package version : 1.12.6-1 #### Used repositories Default #### Expected behaviour Install any flatpak without being root and without warning. #### Actual behaviour Give warning on any installation. e.g. : ![KaOS flatpak bzflag](https://user-images.githubusercontent.com/51275028/156920075-0725426f-99e3-485b-b018-578cd5131a46.png) On any installation, there is this warning : Failed to get revokefs-fuse socket from system-helper: User flatpak does not exist in password file entry Still, the flatpak works : $ flatpak run org.bzflag.BZFlag #### Steps to reproduce the problem Install flatpak, add flathub repository and try to install any flatpak you want : $ sudo pacman -S flatpak $ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $ flatpak install bzflag #### System info link created by Octopi > Tools > SysInfo > ...
Chevek commented 2022年03月06日 12:27:36 +01:00 (Migrated from github.com)
Copy link

This seems to fix the issue:
$ sudo useradd -c "Flatpak Daemon Owner" -d /usr/bin/flatpak -s /bin/false flatpak

This seems to fix the issue: $ sudo useradd -c "Flatpak Daemon Owner" -d /usr/bin/flatpak -s /bin/false flatpak
demmm commented 2022年03月06日 12:29:19 +01:00 (Migrated from github.com)
Copy link

Packaging issue, or should be added to:
https://kaosx.us/docs/flatpak/ ?

Packaging issue, or should be added to: https://kaosx.us/docs/flatpak/ ?
Chevek commented 2022年03月06日 12:29:51 +01:00 (Migrated from github.com)
Copy link

Seems to me a packaging issue.

Seems to me a packaging issue.
demmm commented 2022年03月06日 17:40:24 +01:00 (Migrated from github.com)
Copy link

There are two camps on this, one is adding a system user & group flatpak, other is to stop using flatpak as system, but move to as --user instead.
Check that by "flatpak remotes" and see if the option says "system".
To fix it delete the flathub remote "flatpak remote-delete flathub" and add it with the --user flag "flatpak remote-add --user --if-not-exists flathub

I'm inclined to use the latter as the best option and stop users from using flatpak as system. That would mean adjusting the doc & the message on install:
https://github.com/KaOSx/apps/blob/master/flatpak/flatpak.install#L10

There are two camps on this, one is adding a system user & group `flatpak`, other is to stop using flatpak as system, but move to as --user instead. Check that by "flatpak remotes" and see if the option says "system". To fix it delete the flathub remote "flatpak remote-delete flathub" and add it with the --user flag "flatpak remote-add --user --if-not-exists flathub I'm inclined to use the latter as the best option and stop users from using flatpak as system. That would mean adjusting the doc & the message on install: https://github.com/KaOSx/apps/blob/master/flatpak/flatpak.install#L10
Chevek commented 2022年03月06日 18:15:44 +01:00 (Migrated from github.com)
Copy link

The latter may confuse the user because it contradicts the default flatpak behaviour, which is "unless overridden with the --user or --installation options, this command changes the default system-wide installation." cf. https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-remote-add
Thus the vast majority of documentation you'll find will assume this behaviour, starting with flathub.org.

The latter may confuse the user because it contradicts the default flatpak behaviour, which is "unless overridden with the --user or --installation options, this command changes the default system-wide installation." cf. https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-remote-add Thus the vast majority of documentation you'll find will assume this behaviour, starting with flathub.org.
Chevek commented 2022年03月06日 19:09:39 +01:00 (Migrated from github.com)
Copy link

I confirm, adding --user to "flatpak remote-add" remove the warning as well.

> I confirm, adding --user to "flatpak remote-add" remove the warning as well.
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
KaOS/apps#211
Reference in a new issue
KaOS/apps
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?