I tried both the easy way using the curl setupRepo script and the manual way. Running the Curl command gave me this
sudo curl -LsSf https://repo.plex.tv/scripts/setupRepo.sh | sudo bash
This script will add the Plex repository to the system.
It will also attempt to rectify any previous repository information that may exist on the
system - this is not guaranteed to be successful in all instances. Please visit the Plex
support forums for any further troubleshooting should it be required.
Debian-based distro detected
Remove the old plex repository file? [y/n]: main: line 24: read: read error: 0: Input/output error
main: line 25: answer: unbound variable
I removed the old source list, install gnupg2, ran the other curl command and created the new list and I am still getting a similar error. This is the output message
deven@deven-Ubuntu:/etc/systemd/system/plexmediaserver.service.d$ sudo apt install -y plexmediaserver
Upgrading:
plexmediaserver
Summary:
Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Download size: 0 B / 84.2 MB
Freed space: 190 kB
(Reading database … 217504 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.43.2.10687-563d026ea_amd64.deb …
Failed to stop plexmediaserver.service: Unit plexmediaserver.service not loaded.
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: ERROR: Environment variable “PLEX_MEDIA_SERVER_HOME” is no longer allowed in “/etc/systemd/system
/plexmediaserver.service.d/override.conf”. Please remove.
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation failed.
PlexMediaServer install: Configuration information discovered:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: media
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: AMD Ryzen 5 2600 Six-Core Processor
PlexMediaServer install: Config file used: /etc/systemd/system/plexmediaserver.service.d/override.conf
PlexMediaServer install: Intel i915 Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Found
PlexMediaServer install:
PlexMediaServer install: Pre-installation Validation complete. Errors: 1, Warnings: 0
dpkg: error processing archive /var/cache/apt/archives/plexmediaserver_1.43.2.10687-563d026ea_amd64.deb (–unpack):
new plexmediaserver package pre-installation script subprocess returned error exit status 1
dpkg: error while cleaning up:
installed plexmediaserver package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/plexmediaserver_1.43.2.10687-563d026ea_amd64.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)