Need help updating PMS on Raspberry Pi to Beta.

Good morning,

First of all, I’m not an expert when it comes to Linux, and all I’ve been doing was searching here and there on how to solve my problems, and trying to do what’s best. I most probably did a few mistakes, and I’d be glad to be corrected by your suggestions.

So far, this is what I tried to do. I’ve installed PlexMediaServer on Raspbian Raspberry Pi 3 Model B from the dev2day repository, and configured it for the pi:plex user.

So far so good, everything works well for the public releases. Whenever an update comes out, I run sudo apt-get update && sudo apt-get upgrade, then reboot and all’s good.

Now, I’d like to try out the new collection feature in the PlexPass beta.

All my attempts failed at the time of this writing, so I’ll detail what I did here and hope someone can help me from there.

First attempt :

I tried changing the /etc/apt/sources.list.d/pms.list from
deb https://dev2day.de/pms/ jessie main
to
deb https://dev2day.de/pms/ plexpass main
but the repository only hosts main public versions, so the update didn’t find the correct packages, and I reverted the line to use Jessie.

Second attempt :

On the Plex Web App, when I select the beta channel, an update is found for version 1.11.0.4666 (I run 1.10.1.4602).
Since there’s no automatic install on Raspberry Pi, a link allows me to download the .deb file : plexmediaserver-ros6-binaries-annapurna_1.11.0.4666-fc63598ba_armel.deb

I put it in my Pi home folder (owned by pi:pi), then run sudo dpkg -i plexmediaserver-ros6-binaries-annapurna_1.11.0.4666-fc63598ba_armel.deb

which outputs :

dpkg: error processing archive plexmediaserver-ros6-binaries-annapurna_1.11.0.4666-fc63598ba_armel.deb (--install):
 package architecture (armel) does not match system (armhf)
Errors were encountered while processing:
 plexmediaserver-ros6-binaries-annapurna_1.11.0.4666-fc63598ba_armel.deb

I then added the armel architecture with the sudo dpkg --add-architecture armel command, and tried the installation a second time, which gives me the following :

Setting up plexmediaserver-ros6-binaries-annapurna (1.11.0.4666-fc63598ba) ...
chown: invalid user: ‘admin:admin’
dpkg: error processing package plexmediaserver-ros6-binaries-annapurna (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 plexmediaserver-ros6-binaries-annapurna

admin:admin does not exist on my system, so the post-installation script is not right.
I edited the file /var/lib/dpkg/info/plexmediaserver-ros6-binaries-annapurna.postinst so that chown is made for pi:plex instead of admin:admin, and continued the installation with apt-get upgrade.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

I continued with Y, and here’s the output :

>! Setting up plexmediaserver-ros6-binaries-annapurna (1.11.0.4666-fc63598ba) ...

! Adding ‘diversion of /apps/plexmediaserver-annapurna/plexmediaserver_environment to /apps/plexmediaserver-annapurna/plexmediaserver_environment.orig by plexmediaserver-ros6-binaries-annapurna’
! Ignoring request to rename file ‘/apps/plexmediaserver-annapurna/plexmediaserver_environment’ owned by diverting package ‘plexmediaserver-ros6-binaries-annapurna’
! Adding ‘diversion of /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service to /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service.orig by plexmediaserver-ros6-binaries-annapurna’
! Ignoring request to rename file ‘/apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service’ owned by diverting package ‘plexmediaserver-ros6-binaries-annapurna’
! Adding ‘diversion of /apps/plexmediaserver-annapurna/logo.png to /apps/plexmediaserver-annapurna/logo.png.orig by plexmediaserver-ros6-binaries-annapurna’
! Ignoring request to rename file ‘/apps/plexmediaserver-annapurna/logo.png’ owned by diverting package ‘plexmediaserver-ros6-binaries-annapurna’
! Failed to restart apache2.service: Unit apache2.service failed to load: No such file or directory.
! /var/lib/dpkg/info/plexmediaserver-ros6-binaries-annapurna.postinst: 36: /var/lib/dpkg/info/plexmediaserver-ros6-binaries-annapurna.postinst: event_push: not found
! dpkg: error processing package plexmediaserver-ros6-binaries-annapurna (–configure):
! subprocess installed post-installation script returned error exit status 127
! Errors were encountered while processing:
! plexmediaserver-ros6-binaries-annapurna
! E: Sub-process /usr/bin/dpkg returned an error code (1)

So I re-eddited the post-install script to comment out the lines related to apache2, from the if to the fi, including the else condition. Relaunching the upgrade succeeded with following output :

! Setting up plexmediaserver-ros6-binaries-annapurna (1.11.0.4666-fc63598ba) …
! Leaving ‘diversion of /apps/plexmediaserver-annapurna/plexmediaserver_environment to /apps/plexmediaserver-annapurna/plexmediaserver_environment.orig by plexmediaserver-ros6-binaries-annapurna’
! Leaving ‘diversion of /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service to /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service.orig by plexmediaserver-ros6-binaries-annapurna’
! Leaving ‘diversion of /apps/plexmediaserver-annapurna/logo.png to /apps/plexmediaserver-annapurna/logo.png.orig by plexmediaserver-ros6-binaries-annapurna’
! Created symlink from /etc/systemd/system/multi-user.target.wants/fvapp-plexmediaserver-annapurna.service to /lib/systemd/system/fvapp-plexmediaserver-annapurna.service.
! Removing ‘diversion of /apps/plexmediaserver-annapurna/plexmediaserver_environment to /apps/plexmediaserver-annapurna/plexmediaserver_environment.orig by plexmediaserver-ros6-binaries-annapurna’
! Removing ‘diversion of /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service to /apps/plexmediaserver-annapurna/fvapp-plexmediaserver-annapurna.service.orig by plexmediaserver-ros6-binaries-annapurna’
! Removing ‘diversion of /apps/plexmediaserver-annapurna/logo.png to /apps/plexmediaserver-annapurna/logo.png.orig by plexmediaserver-ros6-binaries-annapurna’
! No diversion ‘diversion of /apps/plexmediaserver-annapurna/config.xml by plexmediaserver-ros6-binaries-annapurna’, none removed.
! Processing triggers for libc-bin (2.19-18+deb8u10) …

No more errors, so I reboot the server as usual when I’m done updating it. This far, the PlexServer cannot be accessed by any client I have, but I can see Plex services using the ‘top’ monitoring command.

Not happy with the current state, I removed the armel packages with these commands :

sudo apt-get remove .*:armel
sudo dpkg --remove-architecture armel

I then ran update and upgrade before rebooting to get my server running again on the older version.

Third attempt :

I’ve tried using the official ninth gate Plex repository, and updated the pms.list to
deb http://shell.ninthgate.se/packages/debian plexpass main

I’ve added the key with this command :
curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | apt-key add -

But the apt-get update returned the following error :
W: Failed to fetch http://shell.ninthgate.se/packages/debian/dists/plexpass/InRelease Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

Ok, so I’m adding the armel architecture again with
sudo dpkg --add-architecture armel
but it doesn’t work either :

Hit http://shell.ninthgate.se plexpass InRelease                           
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease  Unable to find expected entry main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)        
W: Failed to fetch http://shell.ninthgate.se/packages/debian/dists/plexpass/InRelease  Unable to find expected entry main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease  Unable to find expected entry main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)

Conclusion

So, this is it for now, I didn’t find more informations on the forums (Plex and not-Plex ones). Maybe I was not looking in the right place first, but that’s about all I could find for now.

Any help on this would be appreciated, even if it’s just to say that PlexPass beta is not supported or possible on Raspberry Pi (which would be sad, but then I’d just wait for the stable version to be released).

Thanks for your help.

@“Jean-Baptiste de Berlhe” said:
Good morning,

First of all, I’m not an expert when it comes to Linux, and all I’ve been doing was searching here and there on how to solve my problems, and trying to do what’s best. I most probably did a few mistakes, and I’d be glad to be corrected by your suggestions.

Then please do not use the betas. You do know, that these builds WILL contain errors? The betas are for people who want to help find all the problems before the next features are released to all other users. As a “normal” user it’s not a great idea to install the beta releases.

That being said, just take a look into my “official” beta releases thread [1] :wink:

[1] https://forums.plex.tv/discussion/221444/unofficial-armhf-arm64-multiarch-debian-package-e-g-rpi-2-3-bpi-odroid

You can NOT use the shell.ninthgate.se repo for any hardware other than Intel or AMD64. Stop trying to use it.

Thanks for your answers. I might not be a Linux expert, but I’d still like to try out the beta and report bugs I could find. Installation on Raspberry was really straightforward, and the beta channel easily accessible, so was just giving it a try.
I’ll look into your thread later this week, currently doing other adjustments on my Ubuntu server.