apt update
apt install curl gpg

cd /tmp
wget http://apt.allstarlink.org/repos/asl_builds/install-allstarlink-repository
chmod +x install-allstarlink-repository

Install ASL
Next as root (or with sudo) run the following commands to install ASL.
apt -y install linux-headers-$(uname -r)
apt -y install asl-asterisk
apt -y install allstar-helpers
apt -y install asl-dahdi-linux
apt -y install asl-update-node-list

If you are installing on a Raspberry Pi add:
apt -y install asl-raspberrypi-kernel
apt -y install asl-raspberrypi-kernel-headers

Debiam 11

# install git
sudo apt update
sudo apt upgrade -y
sudo apt install -y git
sudo apt autoremove -y
git clone https://github.com/Allan-N/ASL-Install.git
cd ASL-Install