Ubuntu 22.04 Packaging - development & preview

Hi guys new to this thread…

Just got a new i5-1135G7 and went and tried to install the plexpass version and when i ran it i got the following output

dpkg -i plexmediaserver_1.27.2.5929-a806c5905_amd64.deb
Selecting previously unselected package plexmediaserver.
(Reading database ... 73522 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.27.2.5929-a806c5905_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
/var/lib/dpkg/tmp.ci/preinst: line 617: [: (): integer expression expected
/var/lib/dpkg/tmp.ci/preinst: line 620: [: (): integer expression expected
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.27.2.5929-a806c5905) ...
Setting up plexmediaserver (1.27.2.5929-a806c5905) ...
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - 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:   Processor:           Intel(R)
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
/var/lib/dpkg/info/plexmediaserver.postinst: 311: [: Illegal number: ()
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - Installation successful.  Errors: 0, Warnings: 0
root@plex:/home/crichardson# cat /tmp/plexinstaller.log
# Plex Media Server installation configuration info:  Tue Jul  5 10:07:17 PM UTC 2022
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=0
DistroName="ubuntu"
DistroVersion="2204"
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=1
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
HaveIntelCeleron=0
HaveIntelPentium=0
Havei915=1
HaveNvidia=0
CPUSKU=()
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=0
HaveBeignet=0
HaveOpenCL=1
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
RequiredIntelGmmlib="21.3.3"
RequiredIntelIGCCore="1.0.9441"
RequiredIntelIGCOpenCL="1.0.9441"
RequiredIntelOpenCL="21.49.21786"
VersionIntelGmmlib="Not Installed"
VersionIntelIGCCore="Not Installed"
VersionIntelIGCOpenCL="Not Installed"
VersionIntelOpenCL="Not Installed"
Platform="NUC11PAHi5"
Processor="Intel(R)"
Distro="Ubuntu 22.04 LTS"
Kernel="Linux plex 5.15.0-40-generic #43-Ubuntu SMP Wed Jun 15 12:54:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
Memory="63939 407 58603"

using the cpucku above i get

CPUSKU="11357"

@crichar

Thanks for confirming.

if you look:

It is indeed a TigerLake – 11th gen
the resultant SKU is what it should be 11000 + 357.

For installation purposes, the trigger is 10000+ (Intel Compute Runtime)

Don’t you love how Intel is doing this?

if you need me to try anything just let me know… im assuming the latest fix for cpusku isnt in the plex pass release thats why it got the illegal number message?

Also on a side note since i am just now playing with quicksync is there any additional packages i need to install besides the plex package?

Latest beta installed perfectly.

Thanks!

@crichar

I have an upcoming change for 12th Gen CPUs.

In that change, I’ve overhauled the entire mechanism because Intel seems to have
decided on a ‘weapons free’ naming convention which isn’t consistent across their products.

It will also handle all Comet and Tiger Lake CPUs.

I also will be introducing the migration from apt-key to gpg repository signing.

I think I’m missing something. I can’t seem to locate the beta kit for this issue. I’ve tried both the download page and setting the server update channel to “beta”. Can someone point me in the right direction? Thanks

@Bergandi

To what are you referring please?

Are you referring to the work I will be previewing ?
All previous work is already included in the current PlexPass beta 1.27.2 version.

@ChuckPa Apologies for not including more information in my initial post. I performed an install on 22.04; see the below (note the need for Beignet). I didn’t think I should see that on an i5-8500T (CoffeeLake) CPU running 22.04 when installing a kit with your fixes.

Setting up plexmediaserver (1.27.2.5929-a806c5905) …
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - 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: Processor: i5-8500T
PlexMediaServer install: Intel i915 Hardware: Found
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: OpenCL: Installed
PlexMediaServer install: Beignet: Not Installed
PlexMediaServer install:
PlexMediaServer install: WARNING: The Beignet-OpenCL library, required for hardware transcoding of HDR content, is missing.
PlexMediaServer install: Please install package: ‘beignet-opencl-icd’
PlexMediaServer install:
PlexMediaServer install: INFO: dpkg will install package ‘beignet-opencl-icd’ automatically
PlexMediaServer install: if available for your host upon successful installation of Plex Media Server.
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.27.2.5929-a806c5905 - Installation successful. Errors: 0, Warnings: 1

Yes, there is an error in the current beta package.
It calls out for Beignet when it should not.

I’ve since fixed that and am waiting for Engineering to release the fix.
The warning can safely be ignored.

You won’t see it in the preview I’m about to share and get feedback on.

If you examine your installed /var/lib/dpkg/info/plexmediaserver.preinst,
you’ll find this group of statements missing:

      # Beignet? - (KabyLake, GeminiLake, and CoffeeLake)
      if [ $BeignetAvailable -eq 1 ]; then
        [ $HaveIntelCore -gt 0 ] && [ $CPUSKU -ge 7000 ] && [ $CPUSKU -lt 10000 ] && NeedBeignet=1 && NeedOpenCL=1
      else
        [ $HaveIntelCore -gt 0 ] && [ $CPUSKU -ge 7000 ] && NeedIntelCompute=1
      fi

All following here:

I have development / basic testing completed for the next packaging change for PMS on Linux.

I request your assistance to make certain it’s ready for public release (Beta)

Core changes:

  1. Rewrote CPU detection to account fo variable length Intel CPU model name strings

  2. Upgraded repository / Plex signing key management.
    – Ubuntu 20+ / Debian 10+ now use GPG trusted keyring signing
    ( Older versions continue to use apt-key method. )
    – Package installation automatically upgrades existing definition non-destructively.

  3. Corrected issue with CometLake / Beignet detection Ubuntu 22.04

  4. Reduced external sub-process use by 80%

  5. If uninstall w/ purge (e.g apt remove --purge plexmediaserver) WILL REMOVE all default files. (relocated metadata and override files unaltered)

I am closing this thread in favor of :