You are not logged in.
I wanted to setup flatpak automatic updates via systemd and used the archwiki guide.
But it showed me this error:
archlinux systemd[1]: Starting Update Flatpak...
archlinux systemd[2335]: flatpak-update.service: Failed to set up mount namespacing: /run/systemd/unit-root/root/.local/share/flatpak: No such file or directory
archlinux systemd[2335]: flatpak-update.service: Failed at step NAMESPACE spawning /usr/bin/flatpak: No such file or directory
archlinux systemd[1]: flatpak-update.service: Main process exited, code=exited, status=226/NAMESPACE
archlinux systemd[1]: flatpak-update.service: Failed with result 'exit-code'.
archlinux systemd[1]: Failed to start Update Flatpak.What am I doing wrong?
Thanks
Last edited by abrattic (2022-02-27 11:54:47)
Offline
Change the second ReadWriteDirectories line in flatpak-update.service to reflect the actual location of the flatpaks.
So if your user is called "user" and you've installed the flatpaks without root privileges the line should be changed to
ReadWriteDirectories=/home/user/.local/share/flatpak/Mutatis mutandis :-)
Jin, Jîyan, Azadî
Offline
As per this reddit comment.
That's because the wiki is wrong.
I don't know why someone thought that it's a good idea to run unattended Flatpak updates with systemd, when applications can get new permissions without the user aware of the changes.
If it were me, I would throw this out the wiki page, that's not a good practice.Anyway, if you're running Flatpak with root, then use the --system option.
The person that added that to the wiki should have mentioned that this can only work with a system Flatpak installation.
For a user Flatpak installation update, you'll need a systemd user service.
Last edited by abrattic (2022-02-28 03:16:49)
Offline