Install Zabify with Debian package

1. Add the key which is later used to verify the Zabify package.
1.1 The first option to retrieve the key is to use gpg. It will download the key from the official ubuntu key server and then save it locally.
				
					sudo -H gpg --no-default-keyring --keyring /usr/share/keyrings/zabify-archive-keyring.gpg --keyserver keyserver.ubuntu.com --recv-keys 5C5B0C4B81C5A1550489734AAB229C708ADE3E48
				
			
1.2 The second option to retrieve the key is to use curl in combination with gpg. It will download the key from the zabify website and then save it locally.
				
					curl -fsSL https://repo.zabify.de/zabify/zabify-archive-keyring.pgp | sudo gpg --dearmor -o /usr/share/keyrings/zabify-archive-keyring.gpg
				
			
2. Add the Zabify repository to be able to install the server software via the package manager. First you need to know on which os and codename you want to install Zabify. In the following you can see how to retrieve the information via the shell. Open https://repo.zabify.de/zabify to look for your os and codename combination.
				
					# <OS>:
cat /etc/os-release | grep "^NAME"

# <Codename>:
cat /etc/os-release | grep "^VERSION_CODENAME"

#  Architecture:
lscpu | grep "^Architecture"

# If your architecture is not amd64:
echo "deb [signed-by=/usr/share/keyrings/zabify-archive-keyring.gpg] https://repo.zabify.de/zabify/<OS> <Codename> main" | sudo tee -a /etc/apt/sources.list.d/zabify.list

# Special case: Your architecture is amd64:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/zabify-archive-keyring.gpg] https://repo.zabify.de/zabify/<OS> <Codename> main" | sudo tee -a /etc/apt/sources.list.d/zabify.list

# Special case: Your architecture is arm64 and os is debian:
echo "deb [signed-by=/usr/share/keyrings/zabify-archive-keyring.gpg] https://repo.zabify.de/zabify/debian-arm64 <Codename> main" | sudo tee -a /etc/apt/sources.list.d/zabify.list

# Special case: Your architecture is arm64 and os is ubuntu:
echo "deb [signed-by=/usr/share/keyrings/zabify-archive-keyring.gpg] https://repo.zabify.de/zabify/ubuntu-arm64 <Codename> main" | sudo tee -a /etc/apt/sources.list.d/zabify.list
				
			

3. Install Zabify.

				
					sudo apt-get update
sudo apt-get install zabify
				
			

3.1 How to fix: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY.

				
					sudo gpg --export 5C5B0C4B81C5A1550489734AAB229C708ADE3E48 | sudo tee /etc/apt/trusted.gpg.d/zabify-archive-keyring.gpg