These are the commands you can use when installing Jellyfin Media Server on Ubuntu 22.04 LTS.
Update Ubuntu
sudo apt update
sudo apt upgrade
Add GPG Key
sudo apt install apt-transport-https ca-certificates gnupg2 curl git -y
curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo gpg –dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg
Add the Repository
echo “deb [arch=$( dpkg –print-architecture )] https://repo.jellyfin.org/$( awk -F’=’ ‘/^ID=/{ print $NF }’ /etc/os-release ) $( awk -F’=’ ‘/^VERSION_CODENAME=/{ print $NF }’ /etc/os-release ) main” | sudo tee /etc/apt/sources.list.d/jellyfin.list
Update Ubuntu
sudo apt update
Install Jellyfin
sudo apt install jellyfin
Enable and Start the Service
sudo systemctl enable jellyfin
sudo systemctl start jellyfin
Open Port in Firewall
sudo ufw allow 8096