sudo apt install linux-lowlatency

sudo nano /etc/security/limits.d/audio.conf

y que quede así:

# Provided by the jackd package.
#
# Changes to this file will be preserved.
#
# If you want to enable/disable realtime permissions, run
#
#    dpkg-reconfigure -p high jackd

@audio   -  rtprio     95
@audio   -  memlock    unlimited
#@audio   -  nice      -19



luego agregamos nuestro usuario al grupo audio

sudo adduser peron audio

Y reiniciamos con:

sudo reboot


agregamos los repositorios KXStudio


# Install required dependencies if needed
sudo apt-get install libglibmm-2.4-1v5 ;

# Download package file
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos-gcc5_9.5.1~kxstudio3_all.deb ;

# Install it
sudo dpkg -i kxstudio-repos-gcc5_9.5.1~kxstudio3_all.deb ;

# Install required dependencies if needed
sudo apt-get install apt-transport-https software-properties-common wget

# Download package file
wget https://launchpad.net/~kxstudio-debian/+archive/kxstudio/+files/kxstudio-repos_9.5.1~kxstudio3_all.deb

# Install it
sudo dpkg -i kxstudio-repos_9.5.1~kxstudio3_all.deb