Plexmediaserver 1.32.1.6999-91e1e2e2c_amd64.deb wont update

Server Version#:1.32.1.6999-91e1e2e2c_amd64.deb

Was having issues with media not being detected and tried updating to a beta version from the website and manually installed it. Now dpkg is locked and wont update Plex to the latest version. Plex is currently working and running fantastically but now I get dpkg error code (1) and now my server wont update any packages at all.

I’ve tried all the different fixes for dpkg and none of them have worked. I really don’t want to have to remove Plex completely and have to rebuild everything from scratch. Just recently did that due to the EOL on server 2012 R2.

Any help or advice would be very appreciated.

This is the output from my terminal

PlexMediaServer install: Pre-installation Validation complete.

Errors: 0, Warnings: 1

dpkg: error processing archive /var /cache/apt/archives/plexmediaserver_1.32.1.6999-91e1e2e2c_amd64.deb (- -unpack):

new plexmediaserver package pre-installation script subprocess returned error exit status 1

Errors were encountered while processing:

/var/cache/apt/archives/plexmediaserver_1.32.1.6999-91e1e2e2c_amd64.deb needrestart is being skipped since dpkg has failed

E: Sub-process /usr/bin/dpkg returned an error code (1)

before touching anything

cat /tmp/plexinstaller.log

Create a </> text block here in your reply
Copy/paste the file contents here.

It’s not 100% clear but I suspect DPKG itself has an internal problem.

Which distro is this?

Am I correctly interpreting you’re trying to install PMS on Windows server 2012 in the WSL layer?

Looks like im facing the same issue - windows install, won’t update the shows, i have to revert back to TVDB scanner to detect - plex tv scanner isn’t picking up any new additions

@Moadh

You don’t install/use the Linux version on windows.

Cannot help you here.

Sorry.

Please create a new thread.

I was previously running PMS on Server 2012 for the past few years. Recent PMS update ended support for server 2012 so I got a new drive and installed Ubuntu server 22.04 and started over from scratch. PMS on Ubuntu has been working great minus this issue.

Getting no file or directory error with cat /tmp/plexinstaller.log

@chucklebutte

after installing PMS, /tmp/plexinstaller.log will only exist until you reboot the machine.

It sounds like you have a DPKG database error (happens).

  1. sudo dpkg --configure -a
  2. Get all the normal Ubuntu updates
  3. sudo dpkg --configure -a
  4. Restart the host
  5. Now attempt your installation

Tried that and still same error. I did sudo dpkg --configure -a and sudo apt-get install -f I’ve reboot several times.

I can’t update or install anything now because of this dpkg error with PMS.

PMS didn’t and can’t create the error.
It relied on DPKG (which is where you’re getting the error 1 from.

This is unfortunately a Ubuntu problem beyond what I can do.

What do the Ubuntu forums say?
What’re the last updates you got?

When I see this on redhat, the problem can be remedied by having RPM rebuild its database of installed packages.

There must be a Ubuntu equivalent.\

Give this a shot sudo apt update --fix-missing

No luck with that one. I know if I remove PMS I can fix the error. I just don’t want to have to create a new database and library and add back all the users again…

Is there anyway to remove PMS but keep settings intact on Linux?

From one Chuck to another thank you, I appreciate all your assistance!

If you’re convinced it’s PMS

  1. as root, make a full tar backup of ‘./Library’ in /var/lib/plexmediaserver in your home directory
    tar cf /home/xxx/PlexLibrary.tar ./Library
  2. apt remove --purge plexmediaserver
  3. reboot
  4. confirm Ubuntu is back to order
  5. install PMS again
  6. STOP PMS – do not initialize it
  7. still as root
cd /var/lib/plexmediaserver
rm -rf ./Library
tar xf /home/xxxxxx/PlexLibrary.tar
chown -R plex:plex Library
systemctl start plex

If it were PMS, everyone would have this problem.

I’m guessing since I installed that beta version with the deb file and not through apt it made dpkg all wonky.

The problem with 7002 is rooted in the Nvidia API interface and causing Tonemapping to fail.

DPKG isn’t involved with that. DPKG places all the files in /usr/lib/plexmediaserver and then, under control of my scripting (postinstall),

  1. add user & group plex if needed
  2. adds user plex to the group which owns /dev/dri (hardware transcoding)
  3. confirms PMS can indeed access the locations specified in an ‘override.conf’ file (if it exists)

On a new installation , postinstall will autostart PMS.

If you both stop and disable PMS with systemctl,
then install again (on top of),

this will confirm if you have a PMS startup problem (which we will need the logs for to see why)

or indeed have a DPKG problem.

The reported error

May 14, 2023 15:07:31.838 [140297333685048] DEBUG - [Req#3a5b/Transcode/JobRunner] Jobs: Starting child process with pid 12740
May 14, 2023 15:07:32.056 [140297333685048] DEBUG - [Req#3a5b/Transcode] Started session successfully: 0a8cfgg9h86754omrcsxtqlh
May 14, 2023 15:07:32.130 [140297260047160] ERROR - [Req#3a70/Transcode/0a8cfgg9h86754omrcsxtqlh/24abbfe2-1f0c-4fb8-b58e-66024cca1b0f] [Parsed_tonemap_cuda_2 @ 0x7f67475fbd40] cu->cuLinkAddData(link_state, CU_JIT_INPUT_PTX, (void*)data, length, name, nb_options, options, option_values) failed → CUDA_ERROR_INVALID_SOURCE: device kernel image is invalid
May 14, 2023 15:07:32.131 [140297282284344] ERROR - [Req#3a76/Transcode/0a8cfgg9h86754omrcsxtqlh/24abbfe2-1f0c-4fb8-b58e-66024cca1b0f] [Parsed_tonemap_cuda_2 @ 0x7f67475fbd40] CUDA linker output: error : Memory space doesn’t match for ‘depth_src’ in ‘tonemap.ptx’, first specified in ‘constants’
May 14, 2023 15:07:32.131 [140297325566776] ERROR - [Req#3a77/Transcode/0a8cfgg9h86754omrcsxtqlh/24abbfe2-1f0c-4fb8-b58e-66024cca1b0f] Error while filtering: Generic error in an external library
May 14, 2023 15:07:32.131 [140297310370616] ERROR - [Req#3a78/Transcode/0a8cfgg9h86754omrcsxtqlh/24abbfe2-1f0c-4fb8-b58e-66024cca1b0f] Failed to inject frame into filter network: Generic error in an external library
May 14, 2023 15:07:32.132 [140297352866616] ERROR - [Req#3a79/Transcode/0a8cfgg9h86754omrcsxtqlh/24abbfe2-1f0c-4fb8-b58e-66024cca1b0f] Error while processing the decoded data for stream #0:0

might just happen if there are playback attempts wanting to continue the instant PMS starts

Just did a sudo dpkg -C and it says I am missing the list control file and md5sums control file for PMS…

Also the beta I upgraded to was .6999 not .7002 I should have clarified before.

List control file? Not good . Your machine is not in good health.

Just downloaded from Plex.tv

[chuck@lizum Downloads.2004]$ sudo dpkg -i *6999*.deb
dpkg: warning: downgrading plexmediaserver from 1.32.2.6995-ec8bde58d to 1.32.1.6999-91e1e2e2c
(Reading database ... 393680 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.32.1.6999-91e1e2e2c_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.32.1.6999-91e1e2e2c) over (1.32.2.6995-ec8bde58d) ...
Setting up plexmediaserver (1.32.1.6999-91e1e2e2c) ...
PlexMediaServer install: PlexMediaServer-1.32.1.6999-91e1e2e2c - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           chuck
PlexMediaServer install:   Plex Group:          chuck
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /sata/plex
PlexMediaServer install:   Temp Directory:      /tmp 
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Processor:           Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
PlexMediaServer install:   Config file used:    /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not 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.32.1.6999-91e1e2e2c - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
[chuck@lizum Downloads.2005]$ ls -la *6999*
-rw-rw-r-- 1 chuck chuck 81190284 May 15 01:50 plexmediaserver_1.32.1.6999-91e1e2e2c_amd64.deb
[chuck@lizum Downloads.2006]$

how do I reinstall those files for PMS? dpkg is saying its missing those two files for PMS only. Not for anything else.

delete the DEB you have and download again.

If still failing… there is something else happening in your machine which needs resolving.

@chucklebutte

If you use ar to extract the pieces of the DEB file,
you can further extract the contents and see the control files.

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