Monday, August 19, 2013

Update Plex repository in Ubuntu Server

Receiving this error on Ubuntu Server when you run the update?

Failed to fetch http://www.plexapp.com/repo/dists/lucid/main/binary-amd64/Packages 404 Not Found
Fix it below:

Edit the sources.list file:

sudo nano /etc/apt/sources.list

At the bottom add:

deb http://plex.r.worldssl.net/PlexMediaServer/ubuntu-repo lucid main

Add the repository key:

wget http://plexapp.com/plex_pub_key.pub
sudo apt-key add plex_pub_key.pub
rm plex_pub_key.pub

Run the update:

sudo apt-get update

You might receive a duplicate error.  To fix this edit the sources.list.d file.  First list to see the duplicate:

ls /etc/apt/sources.list.d

You should see plex and plexmediaserver.  Delete the plex file.

sudo rm -i /etc/apt/sources.list.d/plex.list

I didn't remove the plex.list.save file but it probably isn't necessary anymore.  You can also go back to the sources.list file and comment out the deb line you added above.  I believe it is only necessary if you are going to install Plex.

Hope this helped.

No comments:

Post a Comment