# Ubuntu - apt-key deprecation replacement

**URL:** <https://forums.plex.tv/t/ubuntu-apt-key-deprecation-replacement/863726>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [December 22, 2023, 9:10pm UTC](https://forums.plex.tv/t/ubuntu-apt-key-deprecation-replacement/863726 "2023-12-22T21:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magefyre](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Magefyre](https://forums.plex.tv/u/Magefyre)\
**Post date:** [December 22, 2023, 9:10pm UTC](https://forums.plex.tv/t/ubuntu-apt-key-deprecation-replacement/863726/1 "2023-12-22T21:10:49Z")

</div>

I’m in the process of moving my Plex server from Centos to Ubuntu before the support ends for Centos.  
I followed the steps in [https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/](https://support.plex.tv/articles/235974187-enable-repository-updating-for-supported-linux-server-distributions/) and got a deprecation warning about apt-key. Based on what I read, that command is due to be retired soon.

So after reading the man pages and several articles online, here’s what I ended up with:

echo deb [signed-by=/usr/share/keyrings/PlexSign.asc] [https://downloads.plex.tv/repo/deb](https://downloads.plex.tv/repo/deb) public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

cd /usr/share/keyrings  
sudo curl -O [https://downloads.plex.tv/plex-keys/PlexSign.key](https://downloads.plex.tv/plex-keys/PlexSign.key)  
sudo mv PlexSign.key PlexSign.asc

I’m sure there’s probably a quicker way to save the PlexSign.key directly to the /usr/share/keyrings with the .asc extension, but I don’t know how yet and went with what I did know.

Hope this helps - and if anyone knows a one-line version of putting the key into the correct location with the changed extension, please chime in - I’d love to learn a shortcut.

---

<div class="post-metadata">

**Author:** ![BobSnot](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@BobSnot](https://forums.plex.tv/u/BobSnot)\
**Post date:** [December 23, 2023, 1:05am UTC](https://forums.plex.tv/t/ubuntu-apt-key-deprecation-replacement/863726/3 "2023-12-23T01:05:53Z")

</div>

installing the package for the first time will auto install the repo, so just

```auto
wget https://downloads.plex.tv/plex-media-server-new/1.32.8.7639-fb6452ebf/debian/plexmediaserver_1.32.8.7639-fb6452ebf_amd64.deb
sudo dpkg -i plexmediaserver_1.32.8.7639-fb6452ebf_amd64.deb

```

will take care of it. There is ongoing work to migrate the key from sha1 to something better (sha512 I think) so you might get warnings for a while until this is completed.

The repo is updated a few days (or more, often lots more) behind the actual releases, so if you want to be bleeding edge you’ll end up updating manaully anyway.

---

<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:** [March 22, 2024, 1:06am UTC](https://forums.plex.tv/t/ubuntu-apt-key-deprecation-replacement/863726/4 "2024-03-22T01:06:11Z")

</div>

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