Raspberry Pi - Update & Install of Plex Media Server Fault

Server Version#: 1.19.1.2701

Hope someone from the admins can help.
I get the same error even after uninstalling and reinstalling the plexmediaserver on my Raspberry Pi 4, always get the error on the .deb file… the same error I had when I tried to update the server and it went to try using such .deb package… any hints? Hope someone could help.

Thanks to everyone who could help, Andrew!

Errors were encountered while processing:
** /var/cache/apt/archives/plexmediaserver_1.19.2.2737-b69929dab_armhf.deb**

pi@rasp4b-colussi:~ $ sudo apt-get install plexmediaserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  plexmediaserver
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/71.4 MB of archives.
After this operation, 186 MB of additional disk space will be used.
Selecting previously unselected package plexmediaserver.
(Reading database ... 156664 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.19.2.2737-b69929dab_armhf.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Systemd configuration error detected:
PlexMediaServer install: File "/etc/systemd/system/plexmediaserver.service" is leftover from an earlier Debian/Ubuntu bug.
PlexMediaServer install: Please transfer any customizations \(APP_DIR, User, Group, TMPDIR, and/or UMask\) to a proper "/override.conf"
PlexMediaServer install: and reinstall.
PlexMediaServer install: Unit override "/etc/systemd/system/plexmediaserver.service" found.
PlexMediaServer install: Only "/etc/systemd/system/plexmediaserver.service.d/override.conf" is supported.
PlexMediaServer install: Warning:  "/var/lib/plexmediaserver/Library/Application Support" isn't owned by "plex", UID: 999.  Found "pi", UID: 1000 instead. Continuing.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
PlexMediaServer install:   Installation Type:  Update
PlexMediaServer install:   Process Control:    systemd
PlexMediaServer install:   Plex User:          plex
PlexMediaServer install:   Plex Group:         plex
PlexMediaServer install:   Video Group:        video
PlexMediaServer install:   Metadata Dir:       /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:     /tmp
PlexMediaServer install:   Lang Encoding:      en_US.UTF-8
PlexMediaServer install:   Transcoding HW:     Not found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete.  Errors: 0, Warnings: 1
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_1.19.2.2737-b69929dab_armhf.deb (--unpack):
 new plexmediaserver package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/plexmediaserver_1.19.2.2737-b69929dab_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I think I SOLVED it, after having tried many steps, removing removing+purge, trying also to use a previous version of the .deb server found somewhere in the Internet, at the end I followed the below links and used the --force-overwrite command using the lastest .deb version of the server and it make through.
https://askubuntu.com/questions/141370/how-to-fix-a-broken-package-when-apt-get-install-f-does-not-work

I also followed again but a new plexmediaserver installation procedure for my Raspberry Pi 4 and it did work.
https://sbcguides.com/install-plex-media-server-on-raspberry-pi/

Fingers crossed but I can now access the server and I can see the latest server version running and updated… I think I’ll do a MicroSD card backup of my Pi4 before any further tries.

Thank you all for the help.

Andrew

I am the author of the installation scripting.

As you can see, I tell you what the script does not like and suggests the resolution.

PlexMediaServer install: Systemd configuration error detected:
PlexMediaServer install: File “/etc/systemd/system/plexmediaserver.service” is leftover from an earlier Debian/Ubuntu bug.
PlexMediaServer install: Please transfer any customizations (APP_DIR, User, Group, TMPDIR, and/or UMask) to a proper “/override.conf”
PlexMediaServer install: and reinstall.

Were you able to remove the file /etc/systemd/system/plexmediaserver.service and transfer any customizations you had made into the proper override.conf (systemctl edit plexmediaserver)?

ChuckPa, nice to have your feedback and you all are doing a great job with Plex.
I had a problem running the new version .deb file, either I was trying to use apt update/upgrade or I directly tried to launch it with the dpkg -i. There was something stuck, I think, in my system and I tried also to remove/purge the plexmediaserver from the Raspbian OS, but also that solution did not work. I tried to follow the commands suggested in the link I posted in my previous reply - https://askubuntu.com/questions/141370/how-to-fix-a-broken-package-when-apt-get-install-f-does-not-work - and after that I could reinstall the latest version of the server, without any error… now I’ve already installed another new release of the server without any issue at all… therefore I dunno what could have been the culprit.

Also I did not lose any configuration/metadata of my plex server, after having removed/purged the plexmediaserver and after having used the above additional commands from that website guidebook. Hope it could continue working smoothly.

Thanks for your response and keep in touch. Also, if you need my support for any tests on the Raspbian and PlexMediaServer, feel free to ask, it’d be a pleasure to contribute to your team.

Andrew (Italy)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.