Back to TIL
shell

Installing Plex on Ubuntu 24.04 LTS using apt

I couldn’t find up-to-date installation instructions, that also handled the apt-key deprecation and used trusted trusted.gpg.d. Here it goes:

# Grab the signing key the modern way, without apt-key
$ curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/plexsign.gpg > /dev/null
# Check that permissions are OK
$ sudo chmod 644 /etc/apt/trusted.gpg.d/plexsign.gpg
# Add Plex apt sources
$ echo deb https://downloads.plex.tv/repo/deb/ public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
# Refresh packages
$ sudo apt update
# Install Plex
$ sudo apt install plexmediaserver

Then open up http://<your ip>:32400/web.

The repo source and public signing key I was able to find in the official Plex docs for apt.