Installed plexmediaserver package post-installation script subprocess returned error exit status 1

Server Version#: plexmediaserver 1.32.8.7639-fb6452ebf armhf
OS:
PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye

Error from apt:


Setting up plexmediaserver (1.32.8.7639-fb6452ebf) …
dpkg: error processing package plexmediaserver (–configure):
installed plexmediaserver package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
plexmediaserver


There is no media server install log in the /tmp directory. I’ve also noticed that I don’t have a plexmediaserver.service file in /etc/systemd/system/.

I’ve tried sudo apt -f install, but that hasn’t worked.

PMS installs ok on Debian 11.
It does complain of a null byte but continues anyway (other distros don’t complain)

root@debian11:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@debian11:~# dpkg -i plexmediaserver_1.32.8.7639-fb6452ebf_amd64.deb 
Selecting previously unselected package plexmediaserver.
(Reading database ... 12066 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.32.8.7639-fb6452ebf_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
/var/lib/dpkg/tmp.ci/preinst: line 365: warning: command substitution: ignored null byte in input
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.32.8.7639-fb6452ebf) ...
Setting up plexmediaserver (1.32.8.7639-fb6452ebf) ...
PlexMediaServer install: PlexMediaServer-1.32.8.7639-fb6452ebf - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
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:   Processor:           Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
/var/lib/dpkg/info/plexmediaserver.postinst: line 527: gpg: command not found
PlexMediaServer install: WARNING: Unable to install Plex GPG signing key in /usr/share/keyrings/plexmediaserver.gpg
PlexMediaServer install: PlexMediaServer-1.32.8.7639-fb6452ebf - Installation successful.  Errors: 0, Warnings: 1
root@debian11:~# 

It’s checking if it’s in a container


    362 
    363 # Independently,  evaluate if in a LXC.  This is used later in installation to avoid UDEV trigger bug
    364 # Look only for a the prefix 'container='.  No further refinement needed as docker already handled above.
    365 if [ "$(grep -zi '^container=.\+$' /proc/1/environ )" != "" ]; then
    366   LinuxContainer=1
    367 fi
    368 
    369 # Validate the override file contents if it exists
    370 if [ $HaveOverride -eq 1 ]; then
    371 

You can see the null is handled

Any recommendations on how I can get some more details on why it’s failing to upgrade on my system? This was previously working.

use unxz to unpack the deb file.
then use tar to extract the ‘control’

preinst is in the control

EDIT: Found root cause. grep claims to ignore the null but still returns error status (incorrectly). I have submitted a change for Engineering to review (when first back)

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