jasp-issues
jasp-issues copied to clipboard
[Task]: Standard flatpak version too old on Ubuntu 20.04, update linux help
JASP Version
0.16.3
Commit ID
No response
JASP Module
No response
What analysis are you seeing the problem on?
No response
What OS are you seeing the problem on?
Ubuntu 20.04
Bug Description
When I tried to run jasp 0.16.3 on Ubuntu 20.04, I encountered this error:
FATAL:flatpak_sandbox.cc(286)] "Your Flatpak version is too old", please update it
I also found a solution: Install a newer version of flatpak, as described at https://flatpak.org/setup/Ubuntu.
$ sudo add-apt-repository ppa:flatpak/stable
$ sudo apt update
$ sudo apt install flatpak
The "bug" is that I think this problem should be documented at JASP's Linux installation guide, https://jasp-stats.org/linux-installation-guide/.
Expected Behaviour
As user of Ubuntu 20.04, I could have been warned that I need a more recent version of flatpak. This could be added to the Linux installation guide, https://jasp-stats.org/linux-installation-guide/, maybe linking to https://flatpak.org/setup/Ubuntu. (I guess 20.04 is now considered an older version of Ubuntu.)
Steps to Reproduce
- Install flatpak from normal source on an older Ubuntu, like 20.04.
- Try to run JASP, by following installation guide.
Log (if any)
No response
Final Checklist
- [X] I have included a screenshot showcasing the issue, if any.
- [X] I have included a JASP file that causes the crash/bug, if any.
- [X] I have accurately described the bug, and steps to reproduce it.
With hindsight, I probably should have framed this as a feature request. To be sure: I'm really glad that JASP keeps moving forward, thanks everyone for the new release :1st_place_medal: .
@JoKeyser I actually already added the ubuntu stuff (yesterday ;)) because of https://github.com/jasp-stats/jasp-issues/issues/1751
the problem is mostly that canonical doesnt want to really support flatpak so they dont bother updating too often. The ppa that flatpak made available should solve that problem forever though.
@JoKeyser I actually already added the ubuntu stuff (yesterday ;)) because of flatpak/flatpak#1751
Joris thank you and best regards, Kris
The solution to add the ppa is not on the flatpak page anymore, I literally (only) found it here in this thread, thanks for that! So @JorisGoosen please add it directly here - I know its not your fault but it makes the installation way easier for linux beginners (I try to convince such one to use JASP instead of SSPS on Windows xD )...
@Nikilauz @JoKeyser Do you think this is still needed? Updating the flatpak version on ubuntu does not seem to be needed anymore, see https://github.com/jasp-stats/jasp-issues/issues/3323 Also there is now LTS 24.04
@tomtomme , not sure, I don't use LTS 20.04 anymore on my main computer, but I could try soon with one. The older versions of LTS may still be around in some relevant niches...
@tomtomme well on 20.04 based systems the default source for flatpak installations is still on version 1.6.5 Of course there are newer LTS versions of ubuntu now, but on the other hand this issue might reoccur with newer flatpak versions and ubuntu being slow, and most importantly the hint in your installation guide is still falsely pretending to link to a guide on how to add appropiate ppa's (; I'll also open an issue on the flatpak repo (EDIT: here), but no idea if they are willing to put the ppa info back in their guide...
FATAL:flatpak_sandbox.cc(286)] "Your Flatpak version is too old", please update it
If you have a minimum required version of Flatpak, I would recommend setting up your Flatpak app's metadata so that this message can never appear.
If you add something like --require-version=1.12.0 to the finish-args, then Flatpak will refuse to install your app on anything older. For example Steam uses this: look for --require-version in https://github.com/flathub/com.valvesoftware.Steam/blob/beta/com.valvesoftware.Steam.yml.
That is a great idea!
Mentioning a concrete Flatpak version in the error message (less like "Your Flatpak version is too old" and more like "Flatpak version 1.14 is required") would also be a good improvement.
Adding in: https://github.com/flathub/org.jaspstats.JASP/pull/119
@shun2wang this seems to be already included in 0.95?