在Ubuntu上实现Jellyfin自动更新,可参考以下方法:
wget -O - 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/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
sudo apt update
unattended-upgrades工具:sudo apt install unattended-upgrades
/etc/apt/apt.conf.d/50unattended-upgrades,添加Jellyfin源到允许自动更新的源列表中,例如:Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"jellyfin:stable"; # 假设Jellyfin有此源标识,需根据实际情况调整
};
你还可编辑/etc/apt/apt.conf.d/20auto-upgrades设置检查更新频率等,如APT::Periodic::Update-Package-Lists "1";表示每天检查。sudo dpkg-reconfigure -plow unattended-upgrades
sudo systemctl enable unattended-upgrades.service
sudo systemctl start unattended-upgrades.service
unattended-upgrades工具(同上)。配置完成后,系统会自动检查并更新Jellyfin到最新版本。你可通过查看/var/log/unattended-upgrades/unattended-upgrades.log日志来确认更新情况。