Skip to main content
How to Install Plex Media Server on Ubuntu

How to Install Plex Media Server on Ubuntu

Table of Contents

๐Ÿ“บ 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