Conflicting values set - Plex Media Server keyrings issue

Ubuntu Version:
22.04.03 LTS

Problem Description:

I am brand new to Ubuntu/Linux and am primarily using the install to run a Plex Media Server. I followed combined advice from multiple guides to set it all up, and I’m guessing I’ve accidentally duplicated a setting, but not sure how to fix.

My Plex Media Server keeps crashing within 2 hours of anyone streaming on it, and I’m getting this error, which is also preventing me from performing sudo apt update or inxi on the terminal:

E: Conflicting values set for option Signed-By regarding source https://downloads.plex.tv/repo/deb/ public: /usr/share/keyrings/plexmediaserver.gpg != /usr/share/keyrings/plex.gpg

I’ve tried to delete “usr/share/keyrings/plex.gpg”, but doesn’t fix.

Please help me assuming I know absolutely nothing, I’m new! Thank you!

Welcome to Ubuntu Discourse :slight_smile:

From a terminal, run this command and post the output in a reply:
grep -R "plex.tv" /etc/apt/

Thanks

Hey there - there’s the output:

/etc/apt/sources.list.d/plexmediaserver.list:deb [arch=amd64 signed-by=/usr/share/keyrings/plexmediaserver.gpg] https://downloads.plex.tv/repo/deb public main
/etc/apt/sources.list.d/plexmediaserver.sources:URIs: https://downloads.plex.tv/repo/deb

Possibly from following different guides with differing instructions, no worries, you now have two APT sources for Plex (this explains the error you received) since the signing keys are defined differently.

So, let’s get under the hood and try and clean this up :hammer_and_wrench:

You need to keep the .sources file, do not delete it.

First, we can remove the older variant:
sudo rm /etc/apt/sources.list.d/plexmediaserver.list

Now we need to verify the keyring:
cat /etc/apt/sources.list.d/plexmediaserver.sources

You should see something like this:

Types: deb
URIs: https://downloads.plex.tv/repo/deb
Suites: public
Components: main
Architectures: amd64
Signed-By: /usr/share/keyrings/plexmediaserver.gpg

If Signed-By points to /usr/share/keyrings/plexmediaserver.gpg that is correct. If you see something else, post the output here please.

Assuming all is good, final steps:
sudo rm /usr/share/keyrings/plex.gpg
If there is nothing, then that is also fine

sudo apt update

You should be good to go again.

Obviously, if there are errors report back here.

Finally, sudo apt upgrade and then reboot.

2 Likes

Thank you so much for your help! Really appreciate you spelling it out for me. This is the output I got for the “cat” command:

Types: deb
URIs: https://downloads.plex.tv/repo/deb
Suites: public
Components: main
Signed-By: /usr/share/keyrings/plex.gpg

Seems like the Signed-By is pointing at the wrong thing… Is this something we can correct?

Thanks again!

What does this show?
ls -l /usr/share/keyrings/plex.gpg

If a keyring file exists then proceed to update but if not we can recreate it:
wget -qO - https://downloads.plex.tv/plex-keys/PlexSign.key | sudo gpg --dearmor -o /usr/share/keyrings/plex.gpg

You should now be able to run apt update without errors.

1 Like

Thank you SO MUCH! This seems to have worked so far, but of course I won’t know for sure until I try streaming something via Plex. It did reset my Plex server, but that’s fine. I was able to run apt update without issue and have rebooted.

Thanks again! I’ll update here if anything changes!

1 Like

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