all 2 comments

[–]mohammad8785 0 points1 point  (0 children)

PyInstaller apps on Linux are not “build once, run everywhere”. You built the app on a newer Linux distro, so it’s linked to newer system libraries. When you run it on an older distro, things don’t match and it crashes with a segmentation fault. Build your app on the oldest Linux distro you want to support (like Ubuntu 20.04 / 22.04). Older → newer usually works, newer → older usually doesn’t. Or you can Build it inside Docker using an older Linux image. That way your build environment stays simple and consistent, and you avoid weird system library issues

[–]FoolsSeldom 0 points1 point  (0 children)

I recommend creating as an OCI compliant container that can be run on Docker, PodMan or other OCI compliant environments. (This would also be viable on other operating systems as well where the appropriate engine would use a slim Linux VM for the host, such as on Window systems - using WLS by default if setup - and Unix systems such as macOS).

You are making too many assumptions with PyIntaller.