PMS unable to update on 18.04

Server Version: 1.18.4.2171

unable to update from APT or manually. ive removed the cache and re-downloaded and still getting the issue. not finding anything helpful in the logs, ive tried running the validation script inside the .deb file and it doesnt give me any errors.

any help would be appreciated, please see error below when updating from apt.

Preparing to unpack …/plexmediaserver_1.18.7.2457-77cb9455c_amd64.deb …
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
PlexMediaServer install: Pre-installation Validation.
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_1.18.7.2457-77cb9455c_amd64.deb (–unpack):
new plexmediaserver package pre-installation script subprocess returned error exit status 2
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Errors were encountered while processing:
/var/cache/apt/archives/plexmediaserver_1.18.7.2457-77cb9455c_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’m the engineer who wrote the packaging.

Would you have a few minutes to spare and help me figure out what happened?

Hello Chuck, absolutely, your a rock star for writing that.

Here is what I ask:

All in a terminal session:

  1. make a subdirectory
  2. copy the DEB file into it.
  3. cd into that dir
  4. ar x plexmediaserver*.deb (to extract from the archive)
  5. tar xf control.tar.gz (pull the modules from control.tar.gz)
  6. sudo ./preinst (see what it is failing with)

Sorry folks. All good now.

Hello Chuck, i had checked the script before posting, but i followed your instructions and here is my output:
sudo ./preinst
PlexMediaServer install: Pre-installation Validation.

In that terminal window, there is no further output?
No error code / line number printed?

would you mind literally copy/paste of the terminal window text?

Hello Chuck, i had left out my user and computer, but that was it, part of the reason i decided to post since i couldnt find any reason it wouldnt work, direct output:

james@anubis:/tmp$ sudo ./preinst
PlexMediaServer install: Pre-installation Validation.

There is nothing below that? Where is your next prompt?

here is my development version (you can see what is about to be released)

[chuck@lizum debian.508]$ sudo !!
sudo ./plexmediaserver.preinst
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Warning:  "/var/lib/plexmediaserver/Library/Application Support" isn't owned by "plex", UID: 999.  Found "chuck", UID: 1026 instead. Continuing.
PlexMediaServer install: Pre-installation Validation complete.  Errors: 0, Warnings: 1
[chuck@lizum debian.509]$ 

use

```
text
```

Hello Chuck,
nada, here is the whole thing from start to finish:

james@anubis:/tmp$ wget https://downloads.plex.tv/plex-media-server-new/1.18.8.2468-5d395aa9d/debian/plexmediaserver_1.18.8.2468-5d395aa9d_amd64.deb
james@anubis:/tmp$ ar x plexmediaserver*.deb
james@anubis:/tmp$ sudo tar xf control.tar.gz
james@anubis:/tmp$ sudo ./preinst
PlexMediaServer install: Pre-installation Validation.
james@anubis:/tmp$

That makes zero sense. :thinking:

May I send you my new preinst script via PM and ask you to try it?

This is a good puzzle … and I love puzzles. :smiley:

Hello Chuck,
Absolutely, i did go over the script as well and i didnt see anything that would cause the failure either, it all looks pretty standard stuff.

if it makes you feel any better ive been scratching my head over this for the past couple weeks.

PM has been sent.

Chuck helped me narrow the issue down in PM, there was a section of the Pre script that checked if you had a transcoder directory enabled, and i didnt, but i did previously and that caused it to have some problems.

setting the Temp transcoding director to something allowed it to install.

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