Unable to update Plex on Ubuntu 20.04

Server Version#: 1.24.1.4931
Player Version#: 4.64.3

Hey guys,

I cannot update my PMS manually with the .deb package. It gives me the following error:

PlexMediaServer install: Config file used: /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete. Errors: 1, Warnings: 0
dpkg: Fehler beim Bearbeiten des Archivs plexmediaserver_1.24.2.4973-2b1b51db9_amd64.deb (–install):
»neues plexmediaserver-Skript des Paketes pre-installation«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Fehler beim Aufräumen:
»installiertes plexmediaserver-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
plexmediaserver_1.24.2.4973-2b1b51db9_amd64.deb
donatus@LinuxDanceMachine:~/Schreibtisch$ sudo systemctl restart plexmediaserver
donatus@LinuxDanceMachine:~/Schreibtisch$

Which translates to

dpkg: error processing archive plexmediaserver_1.24.2.4973-2b1b51db9_amd64.deb (–install):
new plexmediaserver package pre-installation script subprocess returned error exit status 1

How could I resolve it? Does it have something to do with the override.conf file?

Any help would be highly appreciated :pray:

I think I found the potential error, but I still don’t have any idea how to fix it. When it tries to install it, it adds a space to my custom metadata path, even though there is no space in the path where it’s installed

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Error: Directory "/mnt/B496F3CF96F38FDA/LinuxPlexData/Library/Application Support " [<— unnecessary space before quotation mark] used in “/etc/systemd/system/plexmediaserver.service.d/override.conf” does not exist.

(“/mnt/PlexDrive/PlexData/Library/Application Support” <---- that’s the path where the metadata is stored vs

"/mnt/PlexDrive/PlexData/Library/Application Support " <----space)

If that is indeed the error and if that is why it cannot install sucessfully, how would I go about resolving this?

Show me your override.conf and the /etc/conf line for the mount please?

Hey there Chuck, thanks for chiming in!

The override.conf file looks like this

[Service]
Environment=“PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mnt/B496F3CF96F38FDA/LinuxPlexData/Library/Application Support”
UMask=0002

I’m not sure what you mean by the 2nd bit “etc/conf line”, but if you were talking about the fstab entry for the Plex drive it looks like this

/dev/disk/by-uuid/B496F3CF96F38FDA /mnt/B496F3CF96F38FDA auto nosuid,nodev,nofail,x-gvfs-show 0 0

I didn’t create this entry myself, it was “automatically” created when I’ve set it up in the device manager of my linux distro. If you meant something else let me know :slightly_smiling_face:

Thanks! yeah. Just washed my hands – can’t do a think with them :slight_smile:

If I may?

Why not use UUID=B496F3CF96F38FDA /some/meaningful/place blah blah ?

Haha no probs :smiley:

I’m a noob when it comes to Linux, so just to get you right you mean like this?

UUID=B496F3CF96F38FDA /mnt/B496F3CF96F38FDA auto nosuid,nodev,nofail,x-gvfs-show 0 0

in fstab?

Does this have the potential to solve the errors with the plex installer script? I definitely have no idea where the difference would be :see_no_evil: I didn’t do this entry myself it was generated by my distros’ device manager :see_no_evil:

If it helps I will do it, I just would like to have a “no-pain-in-the-a” method to update PMS without issues on a regular basis. If you could guide a noob on how to do it: Deluxe :slightly_smiling_face:

That looks good.

Before you do anything with it, ALWAYS … manually mount and umount using the target directory.

don’t forget to set chmod 755 for the dir before mounting :slight_smile:

The Plex installer script looks for a few things.

  1. It WILL create /var/lib/plexmediaserver for user plex:plex unless you change the username.

  2. After that, the code doesn’t even go there. it’s in /usr/lib/plexmediaserver

What the installer is looking to confirm, setting up if it needs to, is a runtime environment for you.

Hey again Chuck!

Thank you again for your help, much appreciated.

So I went ahead and mounted the Plex drive like this

UUID=B496F3CF96F38FDA /mnt/B496F3CF96F38FDA auto nosuid,nodev,nofail,x-gvfs-show 0 0

and remounted it and this worked. I also made sure that all the directories you were talking about exist. However, I’m still getting the exact same error message when I’m trying to install the new Plex .deb package. Is there anything else you can think of which may cause this? Or were I mistaken somewhere?

EDIT: It still prints the error

PlexMediaServer install: Error: Directory "/mnt/B496F3CF96F38FDA/LinuxPlexData/Library/Application Support " used in “/etc/systemd/system/plexmediaserver.service.d/override.conf” does not exist.

and this is weird isn’t it? As this directory is definitely existing :frowning: And isn’t it also weird, that there’s a whitespace in the path for the directory in the print? Or does this not matter at all?

Dear Chuck :heart:

I got it! Turned out that there was a space after the path’s quotation mark, I’m dumb. After deleting that white space, the installer script went very fine. Thank you still a ton for all of your suggestions. Up and running now, yay :slightly_smiling_face:

If I may?

I know you won’t be too happy, but I saw it. The space is actually BEFORE the closing quote :slight_smile:

If you had come back one more time, I’d have told you.

I let you find it for two reasons:

  1. The joy of victory :muscle: :muscle:
  2. Learn just how picky Linux really is and that if anything is quoted – it counts.

Hahaha good job on that I guess :laughing:

Yeah I thought it must’ve been something with the path or the error message wouldn’t make any sense :smiley: After testing different constellations of whitespaces in the paths’ end I noticed there is one after the closing quote. That’s where my Linux alarm clock rang and it turned out to be a good alarm :sunglasses:

And yeah :smiley: I was indeed very happy that I found it by myself haha, so thank you for the gift of victory :yum:

But you said there is a space BEFORE the closing quote. I have zero spaces now in there :thinking:

Support "

See it now ?

LOL

It was there :stuck_out_tongue:

Yeah yeah, sure. I got ya, but I think we’re misunderstanding each other. The path in the override.conf file is now

/Application Support", no whitespace. What I said was, that there was a white space all the time in my override.conf file. Like this

…/Application Support" UMask=0002.

It was between the path and the UMask parameter. After changing it to

…/Application Support"UMask=0002 it worked. The path to the directory in the .conf file was fine all the time hehe

Or am I being dumb again? Lmao

Do you see hat happened to your typing?

The forum ruined it.

When we want to share config files, using the code </> button makes a perfect block for us to paste stuff.

so it looks like this

When we’re typing, we see

```
so it looks like this
```

This really helps with these type forms which reformat our writing

and fine…

I’ll give ya the “Atta Boy!” :slight_smile:

Onward and upward

(sorry, I’m a bit punchy. Loaded a different OS on a NAS where it shouldn’t work … Long day)

1 Like

No problem at all. We all have hard days sometimes, I feel ya.

The problem is now solved and that’s the important bit I guess :heart_eyes: Thank you so much for your time and I hope the rest of the day/night will get a lot better for you :relaxed:

Now, I just have to wait for 8x 12TB drives to assemble themselves into a RAID 5.
I already finished the 2x 1TB SSD RAID.

When the main array is finished, I start reloading 52 TB of storage onto it

1 Like

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