Unable to install Plex version 1.18.2 until current (1.19.1.2701) on Ubuntu 2020.04

Server Version#: 1.19.1.2701

I am unable to install any version of Plex after version 1.18.2.2029-36236cc4c through version 1.19.1.2701-6327e27bf. I have kept copies of all the .deb files for a while and tested. The earliest version which successfully installs in 1.18.0.1944-f2cae8d6b.

(Still having new transcoder errors, noted in this thread: Unusable Plex with LG TV after version 1.16 )

Running the installation from commandline produces this output:

$ dpkg -i plexmediaserver_1.19.1.2701-6327e27bf_amd64.deb

(Reading database … 310102 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.1.2701-6327e27bf_amd64.deb …
Failed to stop plexmediaserver.service: Unit plexmediaserver.service not loaded.
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.1.2701-6327e27bf) over (1.19.1.2701-6327e27bf) …
Setting up plexmediaserver (1.19.1.2701-6327e27bf) …
PlexMediaServer install: PlexMediaServer-1.19.1.2701-6327e27bf - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: render
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: Transcoding HW: Found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Failed to write ā€˜change’ to ā€˜/sys/devices/virtual/input/input22/uevent’: Cannot allocate memory
dpkg: error processing package plexmediaserver (–install):
installed plexmediaserver package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.31-0ubuntu9) …
Processing triggers for desktop-file-utils (0.24-1ubuntu2) …
Processing triggers for mime-support (3.64ubuntu1) …
Errors were encountered while processing:
plexmediaserver

Let me know what further information you need.

Can you provide /tmp/plexinstaller.log ?

It is most likely a moot exercise.

DPKG is failing here.

Failed to write ā€˜change’ to ā€˜/sys/devices/virtual/input/input22/uevent’: Cannot allocate memory
dpkg: error processing package plexmediaserver (–install):

I know 20.04 was just released.

I’ve not had time to test it.

My advise is to wait a bit ; at least until I’ve had time to kick the tires and see if it’s drivable

I have completed the upgrade to 20.04 LTS

[chuck@lizum ~/Downloads.453]$ sudo dpkg -i plexmediaserver_1.19.2.2670-40c2bd5e0_amd64.deb
(Reading database ... 372048 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.19.2.2670-40c2bd5e0_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.2.2670-40c2bd5e0) over (1.19.2.2670-40c2bd5e0) ...
Setting up plexmediaserver (1.19.2.2670-40c2bd5e0) ...
PlexMediaServer install: PlexMediaServer-1.19.2.2670-40c2bd5e0 - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         video
PlexMediaServer install:   Metadata Dir:        /home/plexdir/Application Support
PlexMediaServer install:   Temp Directory:      /tmp 
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Config file used:    /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install:   Transcoding HW:      Found
PlexMediaServer install: 
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: INFO: Plex Media Server is not enabled to start at system boot.
PlexMediaServer install: PlexMediaServer-1.19.2.2670-40c2bd5e0 - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
[chuck@lizum ~/Downloads.454]$ 

I just attempted to install plexmediaserver_1.19.1.2701-6327e27bf_amd64.deb again.

Here is the contents of /tmp/plexinstaller.log:

Plex Media Server installation configuration info: Fri 24 Apr 2020 12:42:45 AM PDT

Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=ā€œā€
PlexUser=ā€œplexā€
PlexGroup=ā€œplexā€
VideoGroup=ā€œrenderā€
AppSuppDir=ā€œ/var/lib/plexmediaserver/Library/Application Supportā€
PlexTempDir=ā€œ/tmpā€
LangEncoding=ā€œen_US.UTF-8ā€
ExistingVersion=11506
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0

That version you are using is newer than the one available through the website. The latest version I can download to test is plexmediaserver_1.19.2.2701-6327e27bf_amd64.deb. When version 1.19.2.2670-40c2bd5e0 is available, I will test and get back to you.

Same issue occuring here. version 1.19.2.2702. Plex doesnt even start up after reboots. Kinda critical issue… I tried looking from Kernel.org and they are saying its not a critical error but it kinda makes harder to use the OS when plex destroys package manager / installer.

well I took a mouse and keyboard off from my server and installed the software via SSH client… No errors. How Interesting ain’t it?

that sounds like you’ve got a bad OS installation on your hands.

DPKG is in control, not the scripts which it calls. This isn’t the package’s fault. As the package scripting author, I’d have heard about it long ago from the thousands who’ve installed and are using it now without issue.

ChuckPa, is there any way we can get access to version 1.19.2.2670-40c2bd5e0? The latest version available for download through the plex.tv website is 1.19.1.2701-6327e27bf. I don’t know if that .2 version difference matters, but I’d like to try to rule that out.

I just upgraded to 20.04 and I had the same issue. I tracked down the problem to the lircd-uinput virutal input device. I ran

sudo apt remove lirc

and as soon as it was off, dpkg automatically ran and finished installing plexmediaserver. Best of all, my remote control appears to still work. You should be able to reinstall lirc afterwards, but you’ll need to remove it every time you update plexmediaserver.

2 Likes

Sorry about that version… It’s coming through QA now. I have it here because I was verifying a correction to the SYSV-init service. I had a timing error in variable processing which caused problems in certain situations.

I recently wiped/started fresh with Ubuntu 20.04. For me, the culprit was ā€œckb-nextā€ (open source software for certain keyboards/mice). Quitting the program, stopping the service, installing Plex, then restarting ckb-next did it for me. Credit to this reddit post: https://www.reddit.com/r/SolusProject/comments/evqbar/applying_of_udev_rules_failing/fjc3ylf?utm_source=share&utm_medium=web2x

Thanks for the heads up, but I don’t appear to have that on my system. So something else is taking up that resource. I don’t know what to do about it but I’m going to wait until ChuckPa has the next version for me to test with before I troubleshoot further.

I don’t know if you saw my fix, but here’s how I figured out what was happening.

  1. I used WinSCP and logged in as root.
  2. Browsed to /sys/device/virtual/input/[name of device causing issues]
  3. I opened the device file that showed the name of what service what causing issues. In my case, it was lircd-uinput. I don’t remember the file name you need to open because I’ve removed lirc from my system, but that should at least point you in the direction of what you need to unplug or temporarily ā€œapt removeā€ to get plexmediaserver installed again.
1 Like

For as stable as Ubuntu 20.04 appears to be,

Is it fair to conclude this is a small quirk / bug in the initial release ?

Thanks for posting this. I checked the location of the path that is throwing the errors (at least according to the console output). It was ā€˜/sys/devices/virtual/input/input26/uevent’ for me.

I looked at the file and it appears to be empty. I ran ā€˜file uevent’ and it reported back as empty.

In the directory ā€˜/sys/devices/virtual/input/input26/’ there are files like:

drwxr-xr-x 2 root root 0 Apr 28 12:12 capabilities
drwxr-xr-x 3 root root 0 Apr 28 12:12 event12
drwxr-xr-x 2 root root 0 Apr 28 12:12 id
drwxr-xr-x 3 root root 0 Apr 28 12:12 js0
-r–r–r-- 1 root root 4.0K Apr 28 12:12 modalias
-r–r–r-- 1 root root 4.0K Apr 28 12:12 name
-r–r–r-- 1 root root 4.0K Apr 28 12:12 phys
drwxr-xr-x 2 root root 0 Apr 28 12:12 power
-r–r–r-- 1 root root 4.0K Apr 28 12:12 properties
lrwxrwxrwx 1 root root 0 Apr 28 12:12 subsystem → …/…/…/…/class/input
-rw-r–r-- 1 root root 4.0K Apr 28 12:12 uevent
-r–r–r-- 1 root root 4.0K Apr 28 12:12 uniq

Is there a specific file I should be checking out?

1 Like

Look at the file called name.

Hi all,

I’m having the same issue but with plexmediaserver (1.19.2.2737-b69929dab). Has anyone found a way to resolve the issue?

System is on Ubuntu 18.04 LTS (GNU/Linux 3.10.107-perf-g6e46151 aarch64)

I have been able to install fine on Raspberry Pi as a test but failed on Windows 10 Linux and one installed on a mobile device.

Preparing to unpack …/plexmediaserver_1.19.2.2737-b69929dab_arm64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.19.2.2737-b69929dab) …
Processing triggers for mime-support (3.60ubuntu1) …
Setting up plexmediaserver (1.19.2.2737-b69929dab) …

Configuration file ā€˜/etc/apt/sources.list.d/plexmediaserver.list’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** plexmediaserver.list (Y/I/N/O/D/Z) [default=N] ? n
PlexMediaServer install: PlexMediaServer-1.19.2.2737-b69929dab - 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: Transcoding HW: Not found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
dpkg: error processing package plexmediaserver (–configure):
installed plexmediaserver package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
plexmediaserver
E: Sub-process /usr/bin/dpkg returned an error code (1)

What is ā€œWindows 10 Linuxā€ ??

This is a contradiction of terms?

Sorry, wasn’t very clear. A Windows 10 Linux Subsystem Ubuntu distro (20).

Got the install to work now on a Debian distro and abandoned the Ubuntu attempts altogether now.

David,

Microsoft’s subsystem (WSL2) is insufficient for running a full-up system service such as the Plex Debian installation.

I can install in Dockers, I can install in Containers, I can even install in custom configurations but Microsoft defies all that.

If you’re running on Windows, use the Windows executable.
This is a Square peg - Round hole problem.