Problem
When installing or updating flatpaks on Fedora 38, you might see an error like this one:
Error: ... Writing content object: Need more input
or this one:
Error: ... Input buffer too small
It might only happen for some flatpaks and not others (it seems to affect the larger ones), so your app might be just partially installed/updated.
Cause
There was a regression between flatpak
and ostree
, once ostree-2023.4-1.fc38
update was pushed into stable Fedora updates.
Related Issues
- [Bug]: Can't install an application on void linux (Writing content object: Need more input). · Issue #5452 · flatpak/flatpak · GitHub
- 59a653c breaks flatpak w/system helper · Issue #2900 · ostreedev/ostree · GitHub
Solution
Please see this post.
Workarounds
It might take a day or two after publishing the fixed update before it is available for you to install. If you need a temporary workaround before the fix is available, you can use one of these below:
Option A) Sudo or --user
The problem shouldn’t appear if you run the flatpak
command (assuming you’re running it from a terminal) with sudo
. Alternatively you can also run it with the --user
flatpak option, but please note this installs flatpaks for the current user only and can’t be used to update system flatpaks.
Option B) Downgrade ostree
Another workaround is to downgrade to an older ostree
:
sudo dnf downgrade ostree
(this should also downgrade ostree-libs
)
The broken version is ostree-2023.4-1.fc38
, dnf should offer you something older.
When using immutable systems (Silverblue, Kinoite, Sericea), you can downgrade individual system packages with overrides, like this:
rpm-ostree override replace 'https://bodhi.fedoraproject.org/updates/FEDORA-2023-cab8a89753'
When this issue is eventually solved and the fix is in a new version of your immutable OS, you can reset your overrides with:
rpm-ostree override reset -a
You can discuss this issue here.