Error updating PMS on Raspberry Pi 4, Debian Buster

Server wont update to newest version. When attempting to do so via the CLI/SSH, I get the error quoted below. I am hoping to not have to reinstall the server as I have a rather large library which was extensively customized with metadata and have had to do so several times already.

“Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/70.8 MB of archives.
After this operation, 318 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs… Done
(Reading database … 106172 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.18.7.2438-f342a5a43_armhf.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: SystemD configuration error detected:
PlexMediaServer install: File “/etc/systemd/system/plexmediaserver.service” is l eftover from an earlier Debian/Ubuntu bug.
PlexMediaServer install: Please transfer any customizations (APP_DIR, User, Gro up, TMPDIR, and/or UMask) to a proper “/override.conf”
PlexMediaServer install: and reinstall.
PlexMediaServer install: Unit override ‘/etc/systemd/system/plexmediaserver.serv ice’ found. 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. Contin uing.
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_1.18.7.24 38-f342a5a43_armhf.deb (–unpack):
new plexmediaserver package pre-installation script subprocess returned error e xit status 1
Errors were encountered while processing:
/var/cache/apt/archives/plexmediaserver_1.18.7.2438-f342a5a43_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)”

It is specifically pointing out the problem.

PlexMediaServer install: File “/etc/systemd/system/plexmediaserver.service” 

On Systemd systems,

  1. The main service is in /lib/systemd/system/plexmediaserver.service
  2. Customizations belong in /etc/systemd/system/plexmediaserver.service.d/override.conf

Right on. Thanks for the breakdown, as I am new-ish to this. Which files/changes in existing files must I move in order to rectify the problem?

Seems like im having the same error after latest update on Raspberry Pi 4, Debian Buster. even with sudo purging the plexmedia server and trying to do the complete reinstall It gives me the very same error.

1 Like

Precisely when my error started to occur

Having this error as well and I don’t understand how to fix it.

I found a temporary fix to maintain my library/functional server settings and still allow other packages to update as normal by putting the package “plexmediaserver” on hold.

sudo apt-mark hold plexmediaserver

when a fix is found and Plex can be updated again, use

sudo apt-mark unhold plexmediaserver

Again, really just a temporary fix until the error can be corrected as all it does is prevent the plexmediaserver package from fouling the update process of other packages

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