Would you mind creating a new thread for your issue?
The issue being worked here is strictly /etc/init.d/plexmediaserver (the service script).
What you appear to show me is a parsing error / problem with reading /etc/default/plexmediaserver.
In your new thread (which I’d like you to ping me in), Please also include your /etc/default/plexmediaserver and the contents of /tmp/plexinstaller.log (which will tell me everything the installer had to work with.
Also please tell me as much about the environment as you can.
Distro, container or not, etc. It helps me to know what we’re working with.
I’d also be interested in seeing if there are any warnings, errors, or other output from the dpkg session.