It happened many times (and I was trying to face this issue several weeks) when the runtime of org.fedoraproject.Platform/f39 was required either to upgrade packages or to install new packages. After successfully downloaded 100% of the runtime, printing the error message Error: Remote peer disconnected error: Failed to install org.fedoraproject.Platform: Remote peer disconnected
$ flatpak install fedora org.gnome.gedit
Looking for matches…
Required runtime for org.gnome.gedit/x86_64/stable (runtime/org.fedoraproject.Platform/x86_64/f39) found in remote fedora
Do you want to install it? [Y/n]: y
org.gnome.gedit permissions:
ipc fallback-x11 wayland x11 file access [1] dbus access [2]
[1] host, xdg-run/gvfsd
[2] org.gtk.vfs.*
ID Branch Op Remote Download
1. [✗] org.fedoraproject.Platform f39 i fedora 816.2 MB / 816.2 MB
2. [ ] org.gnome.gedit stable i fedora < 17.9 MB
Error: Remote peer disconnected
error: Failed to install org.fedoraproject.Platform: Remote peer disconnected
I had tried uninstall all packages that require the runtime of org.fedoraproject.Platform/f39 and reinstall those packages but got the same problem. Alternatively install some package from other remote as well, I can install the same package from flathub, there’s no problem when installing the runtime.
Thanks for taking the time to read this.