Require reinstall ? (upgraded ubuntu server)

been running Ubuntu 14 LTS for a long time. I had some RAID issues and decided to update the OS (Ubuntu 18.04 LTS)

upgrade OS, no issues. Plexserver works after upgrade. However., I am trying to upgrade the plexserver now to latest (currently running, with no issues, Version 1.21.2.3943)

sudo apt-get update (no issues)
sudo apt-get upgrade (error message)

sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
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] y
Setting up plexmediaserver (1.21.2.3943-a91458577) ...
dpkg: error processing package plexmediaserver (--configure):
 installed plexmediaserver package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
 plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to manually installed the “1.21.4.4079-1b7748a7b_amd64.deb” file and get the following messages.

(Reading database ... 313980 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.21.4.4079-1b7748a7b_amd64.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:
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:   Intel QSV Hardware:  Not found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:
PlexMediaServer install:   OpenCL library:      Installed
PlexMediaServer install:   Beignet package:     Installed
PlexMediaServer install:
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete.
dpkg: error processing archive /HELIUM_ARRAY/MOVIES/HOLDING/plexmediaserver_1.21.4.4079-1b7748a7b_amd64.deb (--install):
 new plexmediaserver package pre-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Errors were encountered while processing:
 /HELIUM_ARRAY/MOVIES/HOLDING/plexmediaserver_1.21.4.4079-1b7748a7b_amd64.deb

Is there an easier fix than to uninstall and install Plex?

Did you try to uninstall Plex and install it again? You won’t lose your data

1 Like

It’s not asking you to uninstall plex and reinstall it -
It doesn’t like /etc/systemd/system/plexmediaserver.service

Just move that file out of that folder and re-run sudo apt-get upgrade

and if you have custom edit in that file -
it’s also telling you to add those edits the proper way with
sudo systemctl edit plexmediaserver.service

1 Like

moved /etc/systemd/system/plexmediaserver.service out of /etc/systemd/system/
ran sudo apt-get update
ran sudo apt-get upgrade
got error about: Setting up plexmediaserver (1.21.2.3943-a91458577) ... dpkg: error processing package plexmediaserver (--configure): installed plexmediaserver package post-installation script subprocess returned error exit status 1
again, ran: sudo dpkg -i plexmediaserver_1.21.4.4079-1b7748a7b_amd64.deb
no errors
ran sudo apt-get update
ran sudo apt-get upgrade
no errors
all good

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