You should install the package realtime-privileges
to make some system reconfigurations for running JACK
and after installing that you should add user to the realtime group
sudo gpasswd -a $USER realtime
then reboot system
and then use this script to check everything on system is configured to run JACK with minimal problems