# Solution for deprecated Ubuntu/Debian repo install instructions

**URL:** <https://forums.plex.tv/t/solution-for-deprecated-ubuntu-debian-repo-install-instructions/792806>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [May 14, 2022, 10:39pm UTC](https://forums.plex.tv/t/solution-for-deprecated-ubuntu-debian-repo-install-instructions/792806 "2022-05-14T22:39:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![squawkybird](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@squawkybird](https://forums.plex.tv/u/squawkybird)\
**Post date:** [May 14, 2022, 10:39pm UTC](https://forums.plex.tv/t/solution-for-deprecated-ubuntu-debian-repo-install-instructions/792806/1 "2022-05-14T22:39:32Z")

</div>

I attempted a clean install of PMS on Ubuntu 22.04 and followed the instructions [here](https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/). However, this results in warnings:

```auto
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](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository) to come up with this solution, which is more secure as it follows Debian’s current best practices:

```auto
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:

```auto
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:

```auto
# 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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 12, 2022, 10:39pm UTC](https://forums.plex.tv/t/solution-for-deprecated-ubuntu-debian-repo-install-instructions/792806/2 "2022-08-12T22:39:53Z")

</div>

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