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)”