I just purchased a Lenovo laptop with Linux. It came with 22.04. I had previously run 24.04 on a much older laptop and wanted it on this new one. But they had disabled release-upgrades. After a week-long struggle with Lenovo Tech Support and the good folks here, got 24.04.1 installed. Not going to go into the long and gory details (they are here and here), because they are irrelevant to this issue.
What is relevant is that I ended up in the unusual circumstance of needing to totally erase the 24.04 system and reinstall the factory-release of 22.04 LTS (which I had saved on a USB stick) after the 24.04.1 I had managed to install was too problematic to continue with.
But while I was running 24.04, I installed an app that required flatpak. It installed there simply and flawlessly. Trying to run the same steps on 22.04 has not let me install the wanted app.
These were the commands I had run on 24.04. They worked there. They did not work on 22.04.
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
reboot
flatpak install flathub org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08
sudo apt install flatpak-builder
flatpak-builder --user --install --force-clean build-dir io.github.benini.scid.yml
This last failed with
$ flatpak-builder --user --install --force-clean build-dir io.github.benini.scid.yml
Can't load 'io.github.benini.scid.yml': Failed to open file “/home/scohen/io.github.benini.scid.yml”: No such file or directory
flatpak-builder is treating io.github.benini.scid.yml
as the specification of a local disk file rather than something in the flatpak cloud space.
Can someone explain why this is happening?