๐บ Install Plex Media Server via Plex APT Repository#
Set up your personal media server with Plex on Ubuntu using the official APT repository. This guide walks you through each step to ensure a smooth installation.
๐ Update Ubuntu Before Plex Installation#
Before proceeding, ensure your system is fully up to date:
sudo apt update
Upgrade any outdated packages:
sudo apt upgrade -y
๐ Import Plex Media Server APT Repository#
To install Plex from the official source, you need to add the Plex APT repository.
โ Install Required Packages#
Install essential dependencies:
sudo apt install gpg ca-certificates software-properties-common apt-transport-https curl -y
๐ Import the GPG Key#
Import the GPG key to verify the authenticity of Plex packages:
curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plex.gpg
๐ฆ Add the Plex Repository#
Add the official Plex repository to your sources:
echo "deb [signed-by=/usr/share/keyrings/plex.gpg] https://downloads.plex.tv/repo/deb public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
๐ Install Plex Media Server#
Update APT with the newly added Plex repository:
sudo apt update
Install Plex Media Server:
sudo apt install plexmediaserver
๐งช Verify Plex Media Server Service#
Check the status of the Plex service:
systemctl status plexmediaserver
Confirm that the service status is
active (running)
.
โถ๏ธ Manage Plex Media Server Service#
If the service isn’t running, start it manually:
sudo systemctl start plexmediaserver
Enable Plex to start on system boot:
sudo systemctl enable plexmediaserver
Restart the service at any time:
sudo systemctl restart plexmediaserver