I attempted a clean install of PMS on Ubuntu 22.04 and followed the instructions here. However, this results in warnings:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
I ended up borrowing from Docker’s official install instructions to come up with this solution, which is more secure as it follows Debian’s current best practices:
curl -fsSL https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plex-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb \
public main" | sudo tee /etc/apt/sources.list.d/plexmediaserver.list > /dev/null
The only problem I’m seeing so far is when attempting to install, I get this prompt:
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] ?
Choosing Y will replace the “signed-by” changes above and replace it with the default:
# 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
Instead, choose “N” to keep your currently-installed version. The /etc/apt/sources.list.d/plexmediaserver.list file should contain:
deb [arch=amd64 signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main
IMO, the official Plex instructions for Debian/Ubuntu should be updated ASAP to use this method and should not attempt to revert to the old version. Thanks!