Migrate Plex Media Server to official package on Raspberry Pi 3

Neha M
3 min readApr 22, 2019

--

IMPORTANT: This is a supporting article for those of you who followed my previous tutorial on setting up a Plex Media Server on a Raspberry Pi 3 — https://medium.com/@nem25/plex-media-server-on-raspberry-pi-3-using-raspbian-lite-stretch-feace75f2b1d
Others may use it too but it assumes that you have the same setup I outlined in my tutorial.

Plex officially supports the Raspberry Pi architecture so thank you to Jan Friedrich who has provided the Raspberry Pi installer for so many years! In the last server update, he sent a message (which I have attached at the end of this article and have pretty much followed here) that he would no longer be supporting the installer package.

The good news is that if you follow this step by step, your Plex library will be preserved and you won’t need to re-add everything :)

Ssh into your pi and let’s begin the upgrade,

ssh pi@<ip-address>

First, we remove the old installer,

sudo apt-get remove plexmediaserver-installer

Then we remove the old repo,

sudo rm /etc/apt/sources.list.d/pms.list

Now, we need to install the official package of Plex from their website but before that let’s check whether your pi is ARMv7 or ARMv8. Enter,

cat /proc/cpuinfo

This will output a list of details for your processor. Under model name: check whether it says ARMv7 or ARMv8 . Remember this as we will need it when downloading the file.

On your local computer, go to the following link: https://www.plex.tv/media-server-downloads/#plex-media-server
Select Linux and under Choose Distribution, copy the link by right clicking and selecting Copy link address (don’t download it on your local computer) of the file corresponding to whether your pi is ARMv7 or ARMv8
Most likely, it will be ARMv7

Go back to your pi’s terminal window and enter the following,

wget <paste the link you copied here>

It should look something like this,

wget https://downloads.plex.tv/plex-media-server-new/1.15.3.876-ad6e39743/debian/plexmediaserver_1.15.3.876-ad6e39743_armhf.deb

This will start your download. Once that is complete, we need to unpack it by using the following command,

sudo dpkg -i plexmediaserver_1.15.3.876-ad6e39743_armhf.deb

That’s it! Your plex package should now be updated to the official one.

Once everything is installed (and please make sure it is by checking your plex on the local computer or whatever device you use to stream), you may delete the deb installer package,

rm plexmediaserver_1.15.3.876-ad6e39743_armhf.deb

Setting up APT updates

For future updates, we need to add the repo to our sources list. First add the authentication key,

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

Add the repo,

echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Now, the standard apt updates will work to update your Plex media server.

sudo apt-get update
sudo apt-get upgrade

Official article by plex for apt updates — https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/

And here is the final message sent in the previous installer from the dev2day.de repo.

##### ATTENTION #####THIS IS THE LAST UPDATE OF THE dev2day.de PACKAGE!!! UPDATE TO THE OFFICIAL PACKAGE NOW!!!Finally, official ARMv7 and ARMv8 Plex packages are available:
https://www.plex.tv/media-server-downloads/
The migration is simple and your Plex library will be preserved.First, remove the dev2day.de package:
sudo apt-get remove plexmediaserver-installer
Then, remove the dev2day.de repo, e.g. with:
sudo rm /etc/apt/sources.list.d/pms.list
Now, download the appropriate package from https://www.plex.tv/media-server-downloads/ and put it on your device, e.g.:
wget https://downloads.plex.tv/plex-media-server-new/1.15.3.876-ad6e39743/debian/plexmediaserver_1.15.3.876-ad6e39743_armhf.deb
Finally, install the package, e.g.:
sudo dpkg -i plexmediaserver_1.15.3.876-ad6e39743_armhf.deb
Also, the official Plex repository is now available:
https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/
The following thread has more information: https://forums.plex.tv/t/read-me-first-about-server-armv7-and-armv8-ubuntu-debian/226567/Post your questions here: https://forums.plex.tv/tags/server-linux-arm####################

Hope this guide was useful and if there are any comments/edits/problems/questions, please do ask away :)
All feedback is welcome.
Feel free to post any questions to me via Twitter as well —
https://twitter.com/neha_m25

--

--