Any way to restore or fast reinstall an installed flatpak?

Alexander Larsson alexl at redhat.com
Thu Apr 5 14:08:10 UTC 2018


On Thu, Apr 5, 2018 at 3:03 PM, Robin Lee <robinlee.sysu at gmail.com> wrote:
> $ ostree fsck --repo=$HOME/.local/share/flatpak/repo --delete
> Validating refs...
> Enumerating objects...
> Verifying content integrity of 16 commit objects...
>
> fsck objects (48647/72169) [========     ]  67%fsck content object
> b5eeec19a429c594e684f64c1bc84f717b9b6596e3f75fc8197421d94f560c61:
> Corrupted file object; checksum
> expected='b5eeec19a429c594e684f64c1bc84f717b9b6596e3f75fc8197421d94f560c61'
> actual='b7431d71c722e8edb2f4f11b1603ebcfa281e7a598757fa7631355a40fbac986'
> fsck objects (72169/72169) [=============] 100%
> 6 partial commits not verified
> error: Repository corruption encountered
>
> After running this, runtime reinstall will fail:
>
> $ flatpak --user install  flathub org.freedesktop.Sdk/x86_64/1.6
> Installing for user: org.freedesktop.Sdk/x86_64/1.6 from flathub
> [####################] 1 metadata, 0 content objects fetched; 569 B
> transferred in 6 seconds
> error: While trying to checkout
> 07b0e89b0f6c4f72bbeb101f89d5c16ffab2a1f3d2e317b5ecc2adf8ead585ba into
> /home/cheese/.local/share/flatpak/runtime/org.freedesktop.Sdk/x86_64/1.6/.07b0e89b0f6c4f72bbeb101f89d5c16ffab2a1f3d2e317b5ecc2adf8ead585ba-68YTGZ:
> Couldn't find file object
> 'b5eeec19a429c594e684f64c1bc84f717b9b6596e3f75fc8197421d94f560c61'
>
> So the file is still not recovered.

Hmm, this is the object that was corrupt and deleted above, so its not
unexpected that it is not ther. But I'm not sure why it was not pulled
when you reinstalled...

o> By the way, shall flatpak prevents apps from modifying files under /etc?

For technical reasons /etc is a tmpfs, so you can write to it but all
the files from the runtime that are in there are not writable.


More information about the Flatpak mailing list