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!
/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
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
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.
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!