要在Ubuntu上更新Jellyfin版本,您可以按照以下步骤操作:
首先,确保您的系统软件包是最新的:
sudo apt update
sudo apt upgrade -y
根据您的Ubuntu版本,添加Jellyfin的官方GPG密钥和仓库文件。以下是针对不同Ubuntu版本的命令:
对于Ubuntu 20.04 (Focal Fossa) 和 Ubuntu 22.04 (Jammy Jellyfish):
wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo apt-key add -
echo "deb [arch $(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
对于Ubuntu 18.04 (Bionic Beaver):
echo "deb [arch $(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
对于Ubuntu 16.04 (Xenial Xerus):
echo "deb [arch $(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
使用APT包管理器来安装或更新Jellyfin:
安装Jellyfin(如果尚未安装):
sudo apt install jellyfin -y
更新到最新版本(如果已经安装):
sudo apt install --only-upgrade jellyfin -y
更新完成后,重启Jellyfin服务以应用更改:
sudo systemctl restart jellyfin
最后,验证Jellyfin的版本,确保更新成功:
jellyfin --version
以上就是在Ubuntu上更新Jellyfin版本的步骤,希望对您有所帮助。