Can not update software: permission denied

Alexander Larsson alexl at redhat.com
Thu Apr 12 06:33:17 UTC 2018


On Wed, Apr 11, 2018 at 3:51 PM, Yvan Masson
<yvan at masson-informatique.fr> wrote:
> F: Updating remote metadata for flathub_1
> Updating: org.kde.Platform/x86_64/5.9 from flathub_1
> [####-               ] Downloading: 27.6 MB/177.2 MB (378.0 kB/s)
> Warning: Failed to update org.kde.Platform/x86_64/5.9: While pulling
> runtime/org.kde.Platform/x86_64/5.9 from remote flathub_1: Writing
> content object: open(O_TMPFILE): Permission denied
> F: /var/lib/flatpak/appstream/flathub_1/x86_64/.timestamp age 959 is
> greater than ttl 0

Ok. so, when installing a flatpak we first pull from the remote to a
local repo. And additionally, when pulling as a user, but the final
target is the system installation we pull into a temporary location.
By default this happens in a temporary directory in
/var/tmp/ starting with flatpak-cache-. We use O_TMPFILE to create
files there, and for some reason this is failing.

I don't understand why you get EPERM though, the issue we've seen has
been EOPNOTSUPP when /var/tmp does not support O_TMPFILE. Can you try
wiping out /var/tmp/flatpak-cache* and see if that helps?

If that doesn't help, try setting FLATPAK_SYSTEM_CACHE_DIR to some
other directory you have write access to that is on a different
filesystem, maybe that works.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                Red Hat, Inc
       alexl at redhat.com         alexander.larsson at gmail.com


More information about the Flatpak mailing list