For years I have been installing the updates on my Ubuntu server (18.04.1) without issue. Then recently (in the past 6 weeks) I had to start deleting the ‘plex’ user before the install or it would break (saying it already exists). Now, I am unable to update. Nothing has changed on my side (other than normal Ubuntu security patches). Now it tells me the user I have defined as the startup doesn’t exist. This is not true. It does exist and is running the the last version of Plex Server that I could get installed.
Preparing to unpack plexmediaserver_1.19.1.2630-72c16a276_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Error: Unknown username "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install: Error: Unknown group "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
PlexMediaServer install: Installation Type: New
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: Config file used: /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install: Transcoding HW: Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete. Errors: 2, Warnings: 0
dpkg: error processing archive plexmediaserver_1.19.1.2630-72c16a276_amd64.deb (–install):
new plexmediaserver package pre-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) …
Errors were encountered while processing:
plexmediaserver_1.19.1.2630-72c16a276_amd64.deb
Plex is not there since I deleted it (as stated that was the only way to get the previous few updates to install). This is what it looked like a few days before from a backup:
You rebooted after the install?
The plexinstaller.log is written to /tmp. I use it to pass information from preinstall to postinstall. Most distros have /tmp as a ramfs (all contents lost at reboot).
Would you mind rerunning the install again then grabbing the file?
I restarted and re-ran the install. Still nothing in /tmp
The following packages will be upgraded:
plexmediaserver
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/90.9 MB of archives.
After this operation, 150 kB of additional disk space will be used.
Get:1 /home/plexmedia/Shared/plexmediaserver_1.19.1.2630-72c16a276_amd64.deb plexmediaserver amd64 1.19.1.2630-72c16a276 [90.9 MB]
(Reading database … 337189 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.19.1.2630-72c16a276_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Error: Unknown username "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install: Error: Unknown group "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
PlexMediaServer install: Installation Type: New
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: Config file used: /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install: Transcoding HW: Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete. Errors: 2, Warnings: 0
dpkg: error processing archive /home/plexmedia/Shared/plexmediaserver_1.19.1.2630-72c16a276_amd64.deb (–unpack):
new plexmediaserver package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/home/plexmedia/Shared/plexmediaserver_1.19.1.2630-72c16a276_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Still an issue but I did work around it by temporarily allowing Plex to run as the default user. I then switched it back, updated and restarted the service.
Preparing to unpack …/plexmediaserver_1.19.1.2630-72c16a276_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Error: Unknown username "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install: Error: Unknown group "plexmedia " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf”.
PlexMediaServer install:
Notice the trailing SPACE within the quotes?
Was the file modified with a Windows text editor ?
Is there an invisible TAB character at the end of the line?
what does the override.conf show?
PS: Apologies for the delay. I did not receive notification until just now.
PPS: If I do not reply to issues in a timely manner, please @chuckpa ping me. Thanks.