-
|
I noticed that Plex LXC script got bumped from Using Ubuntu 22.04 to 24.04. When I used the console to manually upgrade ubuntu to 24.04 it broke the "update" function. I removed the LXC and restored from a backup. What is the proper way to upgrade without breaking anything? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
What do you mean it broke the update, what error are you getting? |
Beta Was this translation helpful? Give feedback.
-
|
I'm certain this isn't the 'proper' way, but here's what I did to update from an old tteck script version of Plex (on 22.04) to 24.04. Everything works post-update including 1. Backup Plex ConfigurationStop Plex and create a backup of your Plex settings #Remove the tteck motd
echo "" > /etc/motd
#Stop and backup Plex
systemctl stop plexmediaserver.service
tar -czvf /root/plex_backup_$(date +%F).tar.gz /var/lib/plexmediaserver/
2. Update and Clean Current Systemsudo apt update
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y3. Perform the Ubuntu Release Upgradesudo do-release-upgradeIf prompted:
After it's done, it should prompt a reboot, if not: reboot4. Reinstall DependenciesAfter rebooting: apt-get install -y \
curl \
wget \
sudo \
gnupg \
ca-certificates \
software-properties-common \
ffmpeg \
libssl-dev \
libffi-dev \
libexpat1 \
libtiff6 \
libopenjp2-7 \
libturbojpeg0-dev \
apt-transport-https5. Restore Plex Repositorycurl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | tee /usr/share/keyrings/plex.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/plex.gpg] https://downloads.plex.tv/repo/deb public main" | tee /etc/apt/sources.list.d/plexmediaserver.list
apt update6. Update/Reinstall Plexapt -y upgrade plexmediaserver7. Start Plexsystemctl daemon-reload
systemctl enable plexmediaserver
systemctl start plexmediaserver
systemctl status plexmediaserver
8. Restore BackupRestore backed up Plex settings # Extract backup
systemctl stop plexmediaserver
rm -rf /var/lib/plexmediaserver/Library
tar -xzf /root/plex_backup_YYYY-MM-DD.tar.gz -C /
#e.g., tar -xzf /root/plex_backup_2025-10-20.tar.gz -C /
# Fix ownership
chown -R plex:plex /var/lib/plexmediaserver
chmod -R 755 /var/lib/plexmediaserver
Replace 9. Start Plex, Againsystemctl daemon-reload
systemctl enable plexmediaserver
systemctl start plexmediaserver
systemctl status plexmediaserver
10. Clean Upapt autoremove -y
apt autoclean10. Update to the new MOTD |
Beta Was this translation helpful? Give feedback.
I'm certain this isn't the 'proper' way, but here's what I did to update from an old tteck script version of Plex (on 22.04) to 24.04. Everything works post-update including
updatefunction.1. Backup Plex Configuration
Stop Plex and create a backup of your Plex settings
2. Update and Clean Current System
3. Perform the Ubuntu Release Upgrade
I…