[Ubuntu] PMS won't upgrade using sudo apt-get upgrade

Hello,
I am having trouble again upgrading my Plex Media Server using the command line.
When I connect to the PMS using a browser, I see that orange line telling me there is a new version available (version 1.13.5.5291).
So I log on to my server using SSH and then run the command :
sudo apt-get update && sudo apt-get dist-upgrade

Among many other lines, one of the output of this command is the following:
Hit:9 https://downloads.plex.tv/repo/deb public InRelease
It is the only line that contains the word “plex”.

However, when I connect to the server again, using a web browser, the orange line is still there, still telling me that the new version 1.13.5.5291 is available for download.

What do I do wrong ? It worked last time I did it.

By the way, here is the content of my /etc/apt/sources.list.d/plexmediaserver.list file :

# When enabling this repo please remember to add the PlexPublic.Key into the apt setup.
# wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
deb https://downloads.plex.tv/repo/deb/ public main

Thank you for your help.

yeah me too, prob a little glitch for now.

-wbm
ps. bypass fer now

I don’t use Ubuntu/Debian daily and thought it was “update” and “upgrade”.

Correct me / explain please? dist-upgrade or upgrade ?

I didn’t think this is a distro-level upgrade.

dist-upgrade and upgrade are roughly the same. I would not be able to tell you precisely the difference, but you can check it here.
In this case, I tried both. Just in case. But it did not make a difference.

Thanks. dist-upgrade enables smart conflict resolution. :slight_smile:

back. Yeah my yellow-orangeISH update strip has gone after watching some baseball and taking a nap. Is yours still there? Maybe try this in order:
~ sudo apt-get update
~ sudo apt-get upgrade

lemme know.

-wbm

Check apt-cache policy <package and see if the candidate is newer than the version currently installed. If it is the same then you have the latest according to apt. At which point you may want to check the repo itself and see if the newer package is even there.

Hi,
Thank you all for your answers. I just did the commands sudo apt-get update and sudo apt-get upgrade again and it worked fine this time.
Best regards.

1 Like

I have a similar problem, but apt-get encountered an error. I tried installing (after uninstalling) but get the same error:

Reading package lists… Done
Building dependency tree
Reading state information… Done
plexmediaserver is already the newest version (1.13.5.5291-6fa5e50a8).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-116201803011620 linux-headers-4.4.0-116201803011620-generic
linux-image-4.4.0-116201803011620-generic
linux-image-extra-4.4.0-116201803011620-generic
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up plexmediaserver (1.13.5.5291-6fa5e50a8) …
groups: ‘user’: no such user
usermod: user ‘user’ does not exist
dpkg: error processing package plexmediaserver (–configure):
subprocess installed post-installation script returned error exit status 6
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

Did you attempt to specify any command line options or use a script to perform the update? If so, it faulted somewhere else this is a breakdown in apt. I don’t know apt internals well enough to have a solution.

I used:

sudo apt-get install plexmediaserver

Which Ubuntu version? Something isn’t right.

Ubuntu 16.04.5

Here’s the output of lsb_release:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

Also, I tried removing plexmediaserver and manually installing:

sudo dpkg -r plexmediaserver
(Reading database … 283644 files and directories currently installed.)
Removing plexmediaserver (1.13.5.5291-6fa5e50a8) …
Removed symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
Processing triggers for systemd (229-4ubuntu21.4) …
Processing triggers for ureadahead (0.100.0-19) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for mime-support (3.59ubuntu1) …
Processing triggers for libc-bin (2.23-0ubuntu10) …
eric@cameo:~/Downloads$ shasum plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
0cb4cb011583edb0b26898d2e62253c55fc88bc7 plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
eric@cameo:~/Downloads$ sudo dpkg -i plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database … 280481 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb …
Unpacking plexmediaserver (1.13.5.5291-6fa5e50a8) …
Setting up plexmediaserver (1.13.5.5291-6fa5e50a8) …
groups: ‘user’: no such user
usermod: user ‘user’ does not exist
dpkg: error processing package plexmediaserver (–install):
subprocess installed post-installation script returned error exit status 6
Processing triggers for ureadahead (0.100.0-19) …
Processing triggers for systemd (229-4ubuntu21.4) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for mime-support (3.59ubuntu1) …
Errors were encountered while processing:
plexmediaserver

I get the same ‘user’ error. I get a little farther if I create a user named ‘user’:

sudo useradd user -g sudo -g plex
eric@cameo:~/Downloads$ ls
plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
eric@cameo:~/Downloads$ sudo dpkg -i plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
(Reading database … 283645 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb …
Unpacking plexmediaserver (1.13.5.5291-6fa5e50a8) over (1.13.5.5291-6fa5e50a8) …
Setting up plexmediaserver (1.13.5.5291-6fa5e50a8) …
Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /etc/systemd/system/plexmediaserver.service.
Job for plexmediaserver.service failed because the control process exited with error code. See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.
dpkg: error processing package plexmediaserver (–install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) …
Processing triggers for systemd (229-4ubuntu21.4) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for mime-support (3.59ubuntu1) …
Errors were encountered while processing:
plexmediaserver

The output of systemctl didn’t provide any details:

● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/etc/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Fri 2018-08-03 18:07:58 PDT; 4min 19s ago
Process: 9981 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdi

Aug 03 18:07:53 cameo systemd[1]: Failed to start Plex Media Server for Linux.
Aug 03 18:07:53 cameo systemd[1]: plexmediaserver.service: Unit entered failed state.
Aug 03 18:07:53 cameo systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Aug 03 18:07:58 cameo systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Aug 03 18:07:58 cameo systemd[1]: Stopped Plex Media Server for Linux.
Aug 03 18:07:58 cameo systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 03 18:07:58 cameo systemd[1]: Failed to start Plex Media Server for Linux.
~

and neither did journalctl:


– Unit plexmediaserver.service has failed.

– The result is failed.
Aug 03 18:07:53 cameo systemd[1]: plexmediaserver.service: Unit entered failed state.
Aug 03 18:07:53 cameo systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Aug 03 18:07:58 cameo systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Aug 03 18:07:58 cameo systemd[1]: Stopped Plex Media Server for Linux.
– Subject: Unit plexmediaserver.service has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit plexmediaserver.service has finished shutting down.
Aug 03 18:07:58 cameo systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Aug 03 18:07:58 cameo systemd[1]: Failed to start Plex Media Server for Linux.
– Subject: Unit plexmediaserver.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit plexmediaserver.service has failed.

– The result is failed.

I see your error.

sudo useradd user -g sudo -g plex

You can’t customize plex that way.

Standard installation, without plex installed and no-pre-existing user.

sudo dpkg -i plexmediaserver.<package-version-info>.dpkg

The installation script creates user plex and group plex as it installs.

What are you trying to do?

1 Like

Yes, I did that, which resulted in the following (see above, and copied below). I also verified the SHA-1 checksum, so the download should be good:

eric@cameo:~/Downloads$ shasum plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
0cb4cb011583edb0b26898d2e62253c55fc88bc7 plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
eric@cameo:~/Downloads$ sudo dpkg -i plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database … 280481 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb …
Unpacking plexmediaserver (1.13.5.5291-6fa5e50a8) …
Setting up plexmediaserver (1.13.5.5291-6fa5e50a8) …
groups: ‘user’: no such user
usermod: user ‘user’ does not exist

It gave me that same ‘user’ error. So, I created a ‘user’ user with membership in the groups ‘plex’ and ‘sudo’ via the ‘useradd’ command. I tried installing using:

eric@cameo:~/Downloads$ sudo dpkg -i plexmediaserver_1.13.5.5291-6fa5e50a8_amd64.deb

That got me a bit farther, but resulted in a different error (also shown above):

Created symlink from /etc/systemd/system/multi-user.target.wants/plexmediaserver.service to /etc/systemd/system/plexmediaserver.service.
Job for plexmediaserver.service failed because the control process exited with error code. See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.
dpkg: error processing package plexmediaserver (–install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) …
Processing triggers for systemd (229-4ubuntu21.4) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) …
Processing triggers for mime-support (3.59ubuntu1) …
Errors were encountered while processing:
plexmediaserver

So, two different methods of installation, dpkg and apt-get, with no success. I previously had plexmediaserver installed, then (maybe foolishly) ran “apt-get upgrade”. Since there were other updates, maybe an issue with Ubuntu during the ‘apt-get upgrade’? But that ‘user’ error is weird.

Any insights are appreciated.

ur PMS worked with no problemos before… right?

Please show me what you have.

grep -i plex /etc/passwd
grep -i plex /etc/group

Here it is:

eric@cameo:~/Downloads$ grep -i plex /etc/passwd
plex:x:125:132::/var/lib/plexmediaserver:/bin/bash


eric@cameo:~/Downloads$ grep -i plex /etc/group
video:x:44:mythtv,plex,user
plex:x:132:eric

Worked fine before the upgrade.

I don’t know what happened to your system but this is the first time I’ve seen ever seen the installer fail because it encountered a reference to that kind of username (user).

Please manually remove user from /etc/passwd
Please also manually edit it out /etc/group wherever it exists
Next please remove dpkg -r plexmediaserver

Now please sudo dpkg -i plexmediaserver.........dpkg copy/pasting from commandline prompt to the next (including prompts)