diff --git a/content/downloads/_index.md b/content/downloads/_index.md
index 6e06680..bed8a60 100644
--- a/content/downloads/_index.md
+++ b/content/downloads/_index.md
@@ -90,7 +90,8 @@ docker run -d -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /
sudo apt install curl gnupg
curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg
-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
+RELEASE=$( hash pop-upgrade 2> /dev/null && echo Ubuntu || lsb_release --id --short )
+echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/"${RELEASE,,}" $( lsb_release --codename --short ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
sudo apt update
sudo apt install jellyfin
Note: The third command should give you output similar to deb [arch=(architecture)] https://repo.jellyfin.org/(distribution) (release) main"
. We support amd64
, armhf
, and arm64
for architectures, debian
and ubuntu
for distributions, buster
and bullseye
for Debian releases and bionic
, focal
, impish
and jammy
for Ubuntu releases. If you see something different in your output, you might need to manually modify it. Use the closest equivalent Debian or Ubuntu version instead.