Can not update software: permission denied

Yvan Masson yvan at masson-informatique.fr
Thu Apr 12 18:55:08 UTC 2018


Le 12/04/2018 à 08:33, Alexander Larsson a écrit :
> 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.
> 

I wiped out the cache, without success. I will try
FLATPAK_SYSTEM_CACHE_DIR as soon as I have time. Here is the log using
"--ostree-verbose":


$ LANG=C flatpak update -v --ostree-verbose
F: Opening user flatpak installation at path /home/yvan/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
Looking for updates...
F: Fetching summary file for remote ?flathub_1?
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: Updating dependent runtime runtime/org.kde.Platform/x86_64/5.9
F: Transaction: update flathub_1:runtime/org.kde.Platform/x86_64/5.9[$old]
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.Icontheme.Adwaita/x86_64/1.0[*]
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6[*]
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.ffmpeg/x86_64/1.6[*]
F: Transaction: install/update
flathub_1:runtime/org.kde.Platform.Locale/x86_64/5.9[*]
F: Transaction: update
flathub_1:app/org.nextcloud.Nextcloud/x86_64/stable[$old]
F: Transaction: install/update
flathub_1:runtime/org.nextcloud.Nextcloud.Locale/x86_64/stable[*]
F: Transaction: update
flathub_1:runtime/org.freedesktop.Platform.Icontheme.Adwaita/x86_64/1.0[$old]
F: Transaction: update
flathub_1:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6[$old]
F: Transaction: update
flathub_1:runtime/org.freedesktop.Platform.ffmpeg/x86_64/1.6[$old]
F: Transaction: update
flathub_1:runtime/org.kde.Platform.Locale/x86_64/5.9[$old]
F: Transaction: update flathub_1:runtime/org.kde.Platform/x86_64/5.9[$old]
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.Icontheme.Adwaita/x86_64/1.0[*]
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6[*]
F: Transaction: install/update
flathub_1:runtime/org.freedesktop.Platform.ffmpeg/x86_64/1.6[*]
F: Transaction: install/update
flathub_1:runtime/org.kde.Platform.Locale/x86_64/5.9[*]
F: Transaction: update
flathub_1:runtime/org.nextcloud.Nextcloud.Locale/x86_64/stable[$old]
F: Updating remote metadata for flathub_1
Updating: org.kde.Platform/x86_64/5.9 from flathub_1
F: Using new tmpdir staging-94caaf34-fd1b-4589-bb27-ff134aab1806-zD2mLn
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: starting fetch of
f8356790e2ab076e00b0140b60fb8a8c4c512ce3b46c762cdcf8985d9f212cd7.commit
(detached)
F: fetch of
f8356790e2ab076e00b0140b60fb8a8c4c512ce3b46c762cdcf8985d9f212cd7.commit
(detached) complete
F: starting fetch of
f8356790e2ab076e00b0140b60fb8a8c4c512ce3b46c762cdcf8985d9f212cd7.commit
F: fetch of
f8356790e2ab076e00b0140b60fb8a8c4c512ce3b46c762cdcf8985d9f212cd7.commit
complete
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: write of
f8356790e2ab076e00b0140b60fb8a8c4c512ce3b46c762cdcf8985d9f212cd7.commit
complete
F: pull: idle, exiting mainloop
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
[                    ] Downloading metadata: 0/(estimating) 0 bytesF:
starting fetch of
7c0b53ade0e808a4a6d23dddcba245ca0a48ed042e62113a121ea0207d077f44.file
F: starting fetch of
db04fbd146cc0aa646eccc207ba6683bfb7540b769af33438b0c499e3317e7af.file
F: starting fetch of
f6c02c36b1518273f8deb01b5d1751f325f6276475a7f0c3d3e97deadde68755.file
F: starting fetch of
1894fa2f62a1f2611722c2831594028683c632dc0393ae5ed40308d71d011c2b.file
F: starting fetch of
4f8cfc041c498ee0748f9663161e96c30707e1983f9c451c67a594f6ee2f061f.file
F: starting fetch of
39dfc9b53e1e9837abeff797d1e44f16d138df283b8eec57b3b76661dbae0735.file
F: starting fetch of
392c608cf7c27009799779aedbc5dad6e94289400d54f3aa49d2d5479d19e092.file
F: queuing fetch of
8ac110b651e929cb9c40dbb66afcac75541b497b6e72d1f43080f14903ff0d0d.file
F: queuing fetch of
0a5e0e52f906deaa1b052843bbbdb2aebcd22add82862f7c4b93969d76778504.file
F: queuing fetch of
ec3336864cfbadcd01b9ef978aa9ed543001f00af9dbbb571046868d4b208971.file
F: queuing fetch of
96d7d007c3a19899cfc9a7fd13009ccdcb8d9d6088bcd15aa1840b406674280f.file
F: queuing fetch of
1acd40cecffae8de9bb5efed72b4c929505d6ce428750780ee244990fb6e83d6.file
F: queuing fetch of
3ef38b566a99a78e98d0f5d35896af5305c124f6a96c5c4e2bd5ef33dc284f22.file
F: queuing fetch of
1cde5bbc87780418ab8b70b6cc7fcec7690035aa8b9683bbb1be47768d77dd4d.file
F: queuing fetch of
37ed205c1c65d8fa697a58b33e1534f0fc2d4e137f4e38d97afe231e91148b28.file
F: fetch of
7c0b53ade0e808a4a6d23dddcba245ca0a48ed042e62113a121ea0207d077f44.file
complete
[#=                  ] Downloading: 1.2 MB/195.2 MB (1.2 MB/s)    F:
fetch of
f6c02c36b1518273f8deb01b5d1751f325f6276475a7f0c3d3e97deadde68755.file
complete
[##                  ] Downloading: 2.8 MB/195.2 MB (1.4 MB/s)F: fetch
of 1894fa2f62a1f2611722c2831594028683c632dc0393ae5ed40308d71d011c2b.file
complete
F: fetch of
392c608cf7c27009799779aedbc5dad6e94289400d54f3aa49d2d5479d19e092.file
complete
[##=                 ] Downloading: 12.0 MB/195.2 MB (2.4 MB/s)F: fetch
of 39dfc9b53e1e9837abeff797d1e44f16d138df283b8eec57b3b76661dbae0735.file
complete
[###                 ] Downloading: 17.6 MB/195.2 MB (2.2 MB/s)F: fetch
of db04fbd146cc0aa646eccc207ba6683bfb7540b769af33438b0c499e3317e7af.file
complete
[###=                ] Downloading: 23.2 MB/195.2 MB (2.3 MB/s)F: fetch
of 4f8cfc041c498ee0748f9663161e96c30707e1983f9c451c67a594f6ee2f061f.file
complete
[####                ] Downloading: 25.3 MB/195.2 MB (2.3 MB/s)F: fetch
static delta part
3effe4a513a4d0c7b1cc90663eddda316a93888f255d5c44c9316a5ca20c53e8 complete
[####                ] Downloading: 26.5 MB/195.2 MB (2.2 MB/s)F: fetch
static delta part
f421dd06b5ef2ffc34c08b74296c6b19665db7633ee19f8bddde709dd5c1c562 complete
F: execute static delta part
3effe4a513a4d0c7b1cc90663eddda316a93888f255d5c44c9316a5ca20c53e8 complete
[####                ] Downloading: 26.9 MB/195.2 MB (1.9 MB/s)F:
execute static delta part
f421dd06b5ef2ffc34c08b74296c6b19665db7633ee19f8bddde709dd5c1c562 complete
F: pull: idle, exiting mainloop

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 73955 is
greater than ttl 0
Updating appstream data for remote flathub_1
F: Reusing tmpdir staging-94caaf34-fd1b-4589-bb27-ff134aab1806-zD2mLn
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: starting fetch of
467a749b0ab6d183365d1f585939d5edbe6f5f3f821bd918fd288e880b8d7bef.commit
(detached)
F: fetch of
467a749b0ab6d183365d1f585939d5edbe6f5f3f821bd918fd288e880b8d7bef.commit
(detached) complete
F: starting fetch of
467a749b0ab6d183365d1f585939d5edbe6f5f3f821bd918fd288e880b8d7bef.commit
F: fetch of
467a749b0ab6d183365d1f585939d5edbe6f5f3f821bd918fd288e880b8d7bef.commit
complete
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: write of
467a749b0ab6d183365d1f585939d5edbe6f5f3f821bd918fd288e880b8d7bef.commit
complete
F: pull: idle, exiting mainloop
F: Adding GPG keyring data from flathub_1.trustedkeys.gpg to verifier
F: fetch static delta part
9d3dd8aa44507af06a57f85b8fcae45c4ef44891c9c0297e311e4b4e2b2c9320 complete
F: execute static delta part
9d3dd8aa44507af06a57f85b8fcae45c4ef44891c9c0297e311e4b4e2b2c9320 complete
F: pull: idle, exiting mainloop

F: txn commit staging-94caaf34-fd1b-4589-bb27-ff134aab1806-zD2mLn
F: Calling system helper: DeployAppstream


Thanks for the help!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180412/701cb24e/attachment.sig>


More information about the Flatpak mailing list